summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2012-02-27 12:17:04 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2012-02-28 16:29:23 +0800
commitf8f54e190ddb4ed697036b60f5e2ae6dd45b801c (patch)
treedb0e8fffe56ff86c381623fe1dacdd1a25b3c1e7 /drivers/crypto
parentf2ea0f5f04c97b48c88edccba52b0682fbe45087 (diff)
downloadlinux-f8f54e190ddb4ed697036b60f5e2ae6dd45b801c.tar.bz2
crypto: mv_cesa - fix final callback not ignoring input data
Broken by commit 6ef84509f3d439ed2d43ea40080643efec37f54f for users passing a request with non-zero 'nbytes' field, like e.g. testmgr. Cc: <stable@kernel.org> # 3.0+ Signed-off-by: Phil Sutter <phil.sutter@viprinet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r--drivers/crypto/mv_cesa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c
index 015c0fcea0bd..a617c5cb3797 100644
--- a/drivers/crypto/mv_cesa.c
+++ b/drivers/crypto/mv_cesa.c
@@ -712,6 +712,7 @@ static int mv_hash_final(struct ahash_request *req)
{
struct mv_req_hash_ctx *ctx = ahash_request_ctx(req);
+ ahash_request_set_crypt(req, NULL, req->result, 0);
mv_update_hash_req_ctx(ctx, 1, 0);
return mv_handle_req(&req->base);
}