summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2020-07-31 17:03:27 +1000
committerHerbert Xu <herbert@gondor.apana.org.au>2020-08-21 14:45:26 +1000
commit2a05b029c1ee045b886ebf9efef9985ca23450de (patch)
tree8c77239bf150fe1c4b0533fe70e512524e14c222 /crypto
parent129a4dba1b1ba9bb36c46209fc6379beb8926312 (diff)
downloadlinux-stable-2a05b029c1ee045b886ebf9efef9985ca23450de.tar.gz
linux-stable-2a05b029c1ee045b886ebf9efef9985ca23450de.tar.bz2
linux-stable-2a05b029c1ee045b886ebf9efef9985ca23450de.zip
crypto: algif_skcipher - EBUSY on aio should be an error
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: dad419970637 ("crypto: algif_skcipher - Do not set...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/algif_skcipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/algif_skcipher.c b/crypto/algif_skcipher.c
index 478f3b8f5bd5..ee8890ee8f33 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);