Skip to content

Commit 2a05b02

Browse files
committed
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: dad4199 ("crypto: algif_skcipher - Do not set...") Signed-off-by: Herbert Xu <[email protected]>
1 parent 129a4db commit 2a05b02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/algif_skcipher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg,
123123
crypto_skcipher_decrypt(&areq->cra_u.skcipher_req);
124124

125125
/* AIO operation in progress */
126-
if (err == -EINPROGRESS || err == -EBUSY)
126+
if (err == -EINPROGRESS)
127127
return -EIOCBQUEUED;
128128

129129
sock_put(sk);

0 commit comments

Comments
 (0)