io_uring: fix ignoring xa_store errors
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 21 Dec 2020 18:34:04 +0000 (18:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:54:04 +0000 (11:54 +0100)
commit9f8ebecc86a42a1ec9cd8646c752c772e7ee3bde
tree8aa62be6d92133dee555abd62e5ae525089f8c81
parent10e5fb03e2dae2ff768a88227356dfc4c023b0cb
io_uring: fix ignoring xa_store errors

commit a528b04ea40690ff40501f50d618a62a02b19620 upstream.

xa_store() may fail, check the result.

Cc: stable@vger.kernel.org # 5.10
Fixes: 0f2122045b946 ("io_uring: don't rely on weak ->files references")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c