mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
crypto: atmel - only treat EBUSY as transient if backlog
The Atmel SHA driver was treating -EBUSY as indication of queueing to backlog without checking that backlog is enabled for the request. Fix it by checking request flags. Cc: <[email protected]> Signed-off-by: Gilad Ben-Yossef <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
2acce6aa9f
commit
1606043f21
1 changed files with 3 additions and 1 deletions
|
|
@ -1204,7 +1204,9 @@ static int atmel_sha_finup(struct ahash_request *req)
|
|||
ctx->flags |= SHA_FLAGS_FINUP;
|
||||
|
||||
err1 = atmel_sha_update(req);
|
||||
if (err1 == -EINPROGRESS || err1 == -EBUSY)
|
||||
if (err1 == -EINPROGRESS ||
|
||||
(err1 == -EBUSY && (ahash_request_flags(req) &
|
||||
CRYPTO_TFM_REQ_MAY_BACKLOG)))
|
||||
return err1;
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue