diff options
author | Phil Sutter <phil.sutter@viprinet.com> | 2012-02-27 12:17:04 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-12 10:32:56 -0700 |
commit | 56c54856551b8a8199fda32aa7c416c719e5f0b9 (patch) | |
tree | 2171c85800a8c37f3e5c387ec7c129b2273198be /drivers | |
parent | 14dfead7ebff3fcd14549f613041c4f777f8b75e (diff) | |
download | kernel_samsung_smdk4412-56c54856551b8a8199fda32aa7c416c719e5f0b9.zip kernel_samsung_smdk4412-56c54856551b8a8199fda32aa7c416c719e5f0b9.tar.gz kernel_samsung_smdk4412-56c54856551b8a8199fda32aa7c416c719e5f0b9.tar.bz2 |
crypto: mv_cesa - fix final callback not ignoring input data
commit f8f54e190ddb4ed697036b60f5e2ae6dd45b801c upstream.
Broken by commit 6ef84509f3d439ed2d43ea40080643efec37f54f for users
passing a request with non-zero 'nbytes' field, like e.g. testmgr.
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/mv_cesa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c index 38a3297..f53dd83 100644 --- a/drivers/crypto/mv_cesa.c +++ b/drivers/crypto/mv_cesa.c @@ -713,6 +713,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); } |