]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/zcrx: fix null ifq on area destruction
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 21 Jul 2025 09:56:20 +0000 (10:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 21 Jul 2025 12:47:45 +0000 (06:47 -0600)
commit720df2310b89cf76c1dc1a05902536282506f8bf
treec5780bca453b1fb505979c72960f8ab3d52559f1
parentd1fbe1ebf4a12cabd7945335d5e47718cb2bef99
io_uring/zcrx: fix null ifq on area destruction

Dan reports that ifq can be null when infering arguments for
io_unaccount_mem() from io_zcrx_free_area(). Fix it by always setting a
correct ifq.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202507180628.gBxrOgqr-lkp@intel.com/
Fixes: 262ab205180d2 ("io_uring/zcrx: account area memory")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20670d163bb90dba2a81a4150f1125603cefb101.1753091564.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c