]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/zcrx: don't clear not allocated niovs
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 31 Mar 2026 21:07:41 +0000 (22:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Apr 2026 12:55:36 +0000 (06:55 -0600)
commit52dcd1776bed614c6a270d9237df6105feab4c14
tree0736fb31f23b661d7e4f3e366447b09edaf888a2
parent8ae2837d5a97644b729a889951127da98111a32d
io_uring/zcrx: don't clear not allocated niovs

Now that area->is_mapped is set earlier before niovs array is allocated,
io_zcrx_free_area -> io_zcrx_unmap_area in an error path can try to
clear dma addresses for unallocated niovs, fix it.

Fixes: 8c0cab0b7bf7 ("io_uring/zcrx: always dma map in advance")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://patch.msgid.link/cbcb7749b5a001ecd4d1c303515ce9403215640c.1774780198.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c