io_uring: fix openat/statx's filename leak
commit0bdbdd08a8f991bdaee54465a168c0795ea5d28b
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 8 Feb 2020 10:28:03 +0000 (8 13:28 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 8 Feb 2020 20:07:00 +0000 (8 13:07 -0700)
treed0203578fa0046d4452a4bd929b0cf0716b7886c
parent5f798beaf35d79355cbf18019c1993a84475a2c3
io_uring: fix openat/statx's filename leak

As in the previous patch, make openat*_prep() and statx_prep() handle
double preparation to avoid resource leakage.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c