mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 00:50:50 +07:00
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: dad4199706
("crypto: algif_skcipher - Do not set...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
129a4dba1b
commit
2a05b029c1
@ -123,7 +123,7 @@ static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
|
|||||||
crypto_skcipher_decrypt(&areq->cra_u.skcipher_req);
|
crypto_skcipher_decrypt(&areq->cra_u.skcipher_req);
|
||||||
|
|
||||||
/* AIO operation in progress */
|
/* AIO operation in progress */
|
||||||
if (err == -EINPROGRESS || err == -EBUSY)
|
if (err == -EINPROGRESS)
|
||||||
return -EIOCBQUEUED;
|
return -EIOCBQUEUED;
|
||||||
|
|
||||||
sock_put(sk);
|
sock_put(sk);
|
||||||
|
Loading…
Reference in New Issue
Block a user