crypto: atmel - only treat EBUSY as transient if backlog
commit 1606043f214f912a52195293614935811a6e3e53 upstream. 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. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2ff2cc768e
commit
81cc2ef267
@ -1000,7 +1000,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…
x
Reference in New Issue
Block a user