aboutsummaryrefslogtreecommitdiffstats
path: root/io_uring/poll.c
diff options
context:
space:
mode:
authorCaleb Sander Mateos <[email protected]>2025-02-16 22:58:59 +0000
committerJens Axboe <[email protected]>2025-02-17 12:34:46 +0000
commit496f56bf9f1acf11ce14489f34d81ba6e4023f42 (patch)
treef8da87b2b602e4d6a2badcd345dc0b4ac1402fb3 /io_uring/poll.c
parentio_uring: pass ctx instead of req to io_init_req_drain() (diff)
downloadkernel-496f56bf9f1acf11ce14489f34d81ba6e4023f42.tar.gz
kernel-496f56bf9f1acf11ce14489f34d81ba6e4023f42.zip
io_uring/rsrc: avoid NULL check in io_put_rsrc_node()
Most callers of io_put_rsrc_node() already check that node is non-NULL: - io_rsrc_data_free() - io_sqe_buffer_register() - io_reset_rsrc_node() - io_req_put_rsrc_nodes() (REQ_F_BUF_NODE indicates non-NULL buf_node) Only io_splice_cleanup() can call io_put_rsrc_node() with a NULL node. So move the NULL check there. Signed-off-by: Caleb Sander Mateos <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'io_uring/poll.c')
0 files changed, 0 insertions, 0 deletions