]> git.ipfire.org Git - thirdparty/linux.git/commit
io_uring/zcrx: fix area release on registration failure
authorPavel Begunkov <asml.silence@gmail.com>
Tue, 27 May 2025 17:07:33 +0000 (18:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 May 2025 18:56:16 +0000 (12:56 -0600)
commit0ec33c81d9c7342f03864101ddb2e717a0cce03e
tree5dc1f780d5ddbcb1f8e17f90b830d53e8123c008
parenteda4623cf989d033c07355be1469e44f321ce8ae
io_uring/zcrx: fix area release on registration failure

On area registration failure there might be no ifq set and it's not safe
to access area->ifq in the release path without checking it first.

Cc: stable@vger.kernel.org
Fixes: f12ecf5e1c5ec ("io_uring/zcrx: fix late dma unmap for a dead dev")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/bc02878678a5fec28bc77d33355cdba735418484.1748365640.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/zcrx.c