Patch "crypto: atmel - only treat EBUSY as transient if backlog" has been added to the 4.11-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
crypto: atmel - only treat EBUSY as transient if backlog
to the 4.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
crypto-atmel-only-treat-ebusy-as-transient-if-backlog.patch
and it can be found in the queue-4.11 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
1606043f214f912a52195293614935811a6e3e53Mon Sep 17 00:00:00 2001
From: Gilad Ben-Yossef <[email protected]>
Date: Wed, 28 Jun 2017 10:22:03 +0300
Subject: crypto: atmel - only treat EBUSY as transient if backlog
From: Gilad Ben-Yossef <[email protected]>
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.
--- drivers/crypto/atmel-sha.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/crypto/atmel-sha.c +3 -1
@@ -1204,7 +1204,9 @@ static int atmel_sha_finup(struct ahash_ 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;/*
Patches currently in stable-queue which might be from [email protected] are
queue-4.11/crypto-atmel-only-treat-ebusy-as-transient-if-backlog.patch