forked from Minki/linux
crypto: caam - pass the correct buffer length
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>
This commit is contained in:
parent
1a07834024
commit
f456cd2dc8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user