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:
Родитель
1a07834024
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче