io_uring/rsrc: fix error code in io_clone_buffers()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 30 Oct 2024 09:55:06 +0000 (12:55 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Oct 2024 13:09:28 +0000 (07:09 -0600)
commit0f576012ae2ff08009ce91e2294832e2b88aba06
tree4180ac98a9b7f3ffbcc3d7a424a06f3147c67750
parent9b79509ce43370ceaf582bbf752aaeee9d40c9e0
io_uring/rsrc: fix error code in io_clone_buffers()

Return -ENOMEM if the allocation fails. Don't return success.

Fixes: fd4fac160307 ("io_uring/rsrc: unify file and buffer resource tables")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/70879312-810a-49ce-aba3-fdf7f902a477@stanley.mountain
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c