]> www.infradead.org Git - users/hch/misc.git/commit
io_uring/uring_cmd: fix buffer index retrieval
authorMing Lei <ming.lei@redhat.com>
Mon, 11 Nov 2024 10:13:18 +0000 (18:13 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 11 Nov 2024 15:11:37 +0000 (08:11 -0700)
commita43e236fb9aef4528f2bd24095d1f348030f5d9d
treeebae170671ba3a9407d0ac3fa88dcab98ffe9b6d
parent039c878db7add23c1c9ea18424c442cce76670f9
io_uring/uring_cmd: fix buffer index retrieval

Add back buffer index retrieval for IORING_URING_CMD_FIXED.

Reported-by: Guangwu Zhang <guazhang@redhat.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Fixes: b54a14041ee6 ("io_uring/rsrc: add io_rsrc_node_lookup() helper")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Tested-by: Guangwu Zhang <guazhang@redhat.com>
Link: https://lore.kernel.org/r/20241111101318.1387557-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/uring_cmd.c