OSDN Git Service

aio: fix failure to put the file pointer
authorJens Axboe <axboe@kernel.dk>
Sat, 17 Nov 2018 14:43:42 +0000 (07:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:24:33 +0000 (09:24 +0100)
commitdf66ef67c3344b767b3d1d8396d4a3e81942c4e9
tree8544ae4c84074574f7f53a79a423428ac442ce24
parent5689666aa13422264366940db51173a51f27002c
aio: fix failure to put the file pointer

[ Upstream commit 53fffe29a9e664a999dd3787e4428da8c30533e0 ]

If the ioprio capability check fails, we return without putting
the file pointer.

Fixes: d9a08a9e616b ("fs: Add aio iopriority support")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/aio.c