diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-07-31 17:03:27 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-29 09:57:30 +0100 |
commit | 0e5eeecbb71d353bd2975f56121c1261c103021d (patch) | |
tree | b71644426f24658e4b8a17add1daebf1b95607cc /crypto | |
parent | b10c8021a8ecdf397220ff6b6aeb83d0415d9403 (diff) | |
download | linux-crypto-0e5eeecbb71d353bd2975f56121c1261c103021d.tar.gz linux-crypto-0e5eeecbb71d353bd2975f56121c1261c103021d.zip |
crypto: algif_skcipher - EBUSY on aio should be an error
[ Upstream commit 6ccc838ed96261a4fef35aa45f7d951b31aa3d9d ]
I removed the MAY_BACKLOG flag on the aio path a while ago but
the error check still incorrectly interpreted EBUSY as success.
This may cause the submitter to wait for a request that will never
complete.
Fixes: 5da64d081413 ("crypto: algif_skcipher - Do not set...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to '')
-rw-r--r-- | crypto/algif_skcipher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c index 81c40222..30069a92 100644 --- a/crypto/algif_skcipher.c +++ b/crypto/algif_skcipher.c @@ -123,7 +123,7 @@ static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg, crypto_skcipher_decrypt(&areq->cra_u.skcipher_req); /* AIO operation in progress */ - if (err == -EINPROGRESS || err == -EBUSY) + if (err == -EINPROGRESS) return -EIOCBQUEUED; sock_put(sk); |