diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0041-crypto-mv_cesa-fix-final-callback-not-ignoring-input.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0041-crypto-mv_cesa-fix-final-callback-not-ignoring-input.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0041-crypto-mv_cesa-fix-final-callback-not-ignoring-input.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0041-crypto-mv_cesa-fix-final-callback-not-ignoring-input.patch new file mode 100644 index 00000000..89ec447c --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0041-crypto-mv_cesa-fix-final-callback-not-ignoring-input.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 8083680a77c1a483d05981bc87bd7af929d61e1c Mon Sep 17 00:00:00 2001 | ||
2 | From: Phil Sutter <phil.sutter@viprinet.com> | ||
3 | Date: Mon, 27 Feb 2012 12:17:04 +0100 | ||
4 | Subject: [PATCH 41/95] crypto: mv_cesa - fix final callback not ignoring | ||
5 | input data | ||
6 | |||
7 | commit f8f54e190ddb4ed697036b60f5e2ae6dd45b801c upstream. | ||
8 | |||
9 | Broken by commit 6ef84509f3d439ed2d43ea40080643efec37f54f for users | ||
10 | passing a request with non-zero 'nbytes' field, like e.g. testmgr. | ||
11 | |||
12 | Signed-off-by: Phil Sutter <phil.sutter@viprinet.com> | ||
13 | Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> | ||
14 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | ||
15 | --- | ||
16 | drivers/crypto/mv_cesa.c | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c | ||
20 | index dcd8bab..fe79635 100644 | ||
21 | --- a/drivers/crypto/mv_cesa.c | ||
22 | +++ b/drivers/crypto/mv_cesa.c | ||
23 | @@ -714,6 +714,7 @@ static int mv_hash_final(struct ahash_request *req) | ||
24 | { | ||
25 | struct mv_req_hash_ctx *ctx = ahash_request_ctx(req); | ||
26 | |||
27 | + ahash_request_set_crypt(req, NULL, req->result, 0); | ||
28 | mv_update_hash_req_ctx(ctx, 1, 0); | ||
29 | return mv_handle_req(&req->base); | ||
30 | } | ||
31 | -- | ||
32 | 1.7.9.4 | ||
33 | |||