From: Steffen Klassert Date: Tue, 2 Mar 2010 13:59:54 +0000 (+0800) Subject: crypto: authenc - Use correct ahash complete functions X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=77ba115c478d442024964b217f9f12192018cc77;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git crypto: authenc - Use correct ahash complete functions We accidentally assigned the ahash update complete function to the wrong function pointer in crypto_authenc_verify. This patch fixes this. Signed-off-by: Steffen Klassert Signed-off-by: Herbert Xu --- diff --git a/crypto/authenc.c b/crypto/authenc.c index 18870906ea06..6287cfd4d7a0 100644 --- a/crypto/authenc.c +++ b/crypto/authenc.c @@ -454,7 +454,7 @@ static int crypto_authenc_verify(struct aead_request *req, unsigned int authsize; areq_ctx->complete = authenc_verify_ahash_done; - areq_ctx->complete = authenc_verify_ahash_update_done; + areq_ctx->update_complete = authenc_verify_ahash_update_done; ohash = authenc_ahash_fn(req, CRYPTO_TFM_REQ_MAY_SLEEP); if (IS_ERR(ohash))