OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a07834
)
crypto: caam - pass the correct buffer length
author
Fabio Estevam
<fabio.estevam@freescale.com>
Mon, 30 Nov 2015 13:03:58 +0000
(11:03 -0200)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Fri, 4 Dec 2015 14:29:56 +0000
(22:29 +0800)
When buffer 0 is used we should use buflen_0 instead of buflen_1.
Fix it.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamhash.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/caam/caamhash.c
b/drivers/crypto/caam/caamhash.c
index
fe9c156
..
5845d4a
100644
(file)
--- a/
drivers/crypto/caam/caamhash.c
+++ b/
drivers/crypto/caam/caamhash.c
@@
-1596,7
+1596,7
@@
static int ahash_export(struct ahash_request *req, void *out)
len = state->buflen_1;
} else {
buf = state->buf_0;
- len = state->buflen_
1
;
+ len = state->buflen_
0
;
}
memcpy(export->buf, buf, len);