Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
crypto/algif_skcipher.c
··· 123 123 crypto_skcipher_decrypt(&areq->cra_u.skcipher_req); 124 124 125 125 /* AIO operation in progress */ 126 - if (err == -EINPROGRESS || err == -EBUSY) 126 + if (err == -EINPROGRESS) 127 127 return -EIOCBQUEUED; 128 128 129 129 sock_put(sk);