aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/authenc.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-05-01 11:15:36 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-05-01 11:15:36 -0400
commita0be7522b25f17ac2c3964a24b88b5fe7c9404b8 (patch)
treeaba2be9ce572e19d6dc65c56adaa3398a03578c4 /crypto/authenc.c
parent3b2b74cad34e7a0cf6d4929ee9e8ad4e11a84867 (diff)
parentb1145ce395f7785487c128fe8faf8624e6586d84 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: [CRYPTO] cryptd: Correct kzalloc error test [CRYPTO] eseqiv: Fix off-by-one encryption [CRYPTO] api: Fix scatterwalk_sg_chain [CRYPTO] authenc: Fix async crypto crash in crypto_authenc_genicv()
Diffstat (limited to 'crypto/authenc.c')
-rw-r--r--crypto/authenc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/authenc.c b/crypto/authenc.c
index ed8ac5a6fa5f..4b226768752a 100644
--- a/crypto/authenc.c
+++ b/crypto/authenc.c
@@ -217,9 +217,10 @@ static void crypto_authenc_givencrypt_done(struct crypto_async_request *req,
217 int err) 217 int err)
218{ 218{
219 if (!err) { 219 if (!err) {
220 struct aead_givcrypt_request *greq = req->data; 220 struct aead_request *areq = req->data;
221 struct skcipher_givcrypt_request *greq = aead_request_ctx(areq);
221 222
222 err = crypto_authenc_genicv(&greq->areq, greq->giv, 0); 223 err = crypto_authenc_genicv(areq, greq->giv, 0);
223 } 224 }
224 225
225 aead_request_complete(req->data, err); 226 aead_request_complete(req->data, err);