diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2020-07-31 17:03:27 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-08-21 14:45:26 +1000 |
commit | 6ccc838ed96261a4fef35aa45f7d951b31aa3d9d (patch) | |
tree | c8d92d12c0701717027620f1468ec778101b3fa2 /crypto/algif_skcipher.c | |
parent | 5ce33eabf4b82ce5ddfb6b3811d150fef050b7c6 (diff) | |
download | linux-crypto-6ccc838ed96261a4fef35aa45f7d951b31aa3d9d.tar.gz linux-crypto-6ccc838ed96261a4fef35aa45f7d951b31aa3d9d.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: 5da64d081413 ("crypto: algif_skcipher - Do not set...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
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 478f3b8f..ee8890ee 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); |