]> git.baikalelectronics.ru Git - kernel.git/commit
aio: Fix an error code in __io_submit_one()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 3 Apr 2019 06:22:35 +0000 (09:22 +0300)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 3 Apr 2019 16:47:36 +0000 (12:47 -0400)
commit51309661b5103e5b3a4a78012eed7145ce6d02e4
tree4dc3b33c7cdcc7d0e5564d3e9dd0ab8c3cad72ac
parentc03dab144fbae678127da58eb6121622f88210fd
aio: Fix an error code in __io_submit_one()

This accidentally returns the wrong variable.  The "req->ki_eventfd"
pointer is NULL so this return success.

Fixes: b93d06171950 ("aio: move sanity checks and request allocation to io_submit_one()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/aio.c