]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: algif - return error code when no data was processed
authorStephan Mueller <smueller@chronox.de>
Sun, 30 Jul 2017 12:31:18 +0000 (14:31 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 9 Aug 2017 12:17:50 +0000 (20:17 +0800)
commit5703c826b758e0b33c998739af093879979315b8
tree71296be72e8bcae1f539da6c212cdb24fbb98668
parent5060ffc97bc6fdd31595b3ecbc027b0a8df94b5c
crypto: algif - return error code when no data was processed

If no data has been processed during recvmsg, return the error code.
This covers all errors received during non-AIO operations.

If any error occurs during a synchronous operation in addition to
-EIOCBQUEUED or -EBADMSG (like -ENOMEM), it should be relayed to the
caller.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algif_aead.c
crypto/algif_skcipher.c