io_uring/rsrc: Fix an IS_ERR() vs NULL bug in io_install_fixed_file()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 30 Oct 2024 09:54:52 +0000 (12:54 +0300)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Oct 2024 13:09:21 +0000 (07:09 -0600)
commit9b79509ce43370ceaf582bbf752aaeee9d40c9e0
tree6ec032aa0a2bab2aa103b2149b18ec9abb48952c
parentaff750e7094e26eae686965930ef2bec7f4152da
io_uring/rsrc: Fix an IS_ERR() vs NULL bug in io_install_fixed_file()

The io_rsrc_node_alloc() function returns NULL on error, it doesn't
return error pointers. Update the error checking to match.

Fixes: 3f1a54644473 ("io_uring/rsrc: get rid of per-ring io_rsrc_node list")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/762b0c95-f4ce-4fb3-8212-01e216f683ad@stanley.mountain
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/filetable.c