* [PATCH] crypto: caam - pass the correct buffer length
@ 2015-11-30 13:03 Fabio Estevam
2015-12-04 14:41 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2015-11-30 13:03 UTC (permalink / raw)
To: herbert; +Cc: horia.geanta, linux-crypto, Fabio Estevam
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>
---
Untested.
drivers/crypto/caam/caamhash.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/caam/caamhash.c b/drivers/crypto/caam/caamhash.c
index fe9c156..5845d4a 100644
--- 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);
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: caam - pass the correct buffer length
2015-11-30 13:03 [PATCH] crypto: caam - pass the correct buffer length Fabio Estevam
@ 2015-12-04 14:41 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2015-12-04 14:41 UTC (permalink / raw)
To: Fabio Estevam; +Cc: horia.geanta, linux-crypto
On Mon, Nov 30, 2015 at 11:03:58AM -0200, Fabio Estevam wrote:
> 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>
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-04 14:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-30 13:03 [PATCH] crypto: caam - pass the correct buffer length Fabio Estevam
2015-12-04 14:41 ` Herbert Xu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.