]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
io_uring/tctx: check for setup tctx->io_wq before teardown
authorJens Axboe <axboe@kernel.dk>
Wed, 15 Apr 2026 20:22:16 +0000 (14:22 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2026 20:47:29 +0000 (14:47 -0600)
commitee5417fd02cabb6235a89daf5142ffde9aa957fd
treee8a45ccb4ab229c9e875bef7b7bf77da650063f4
parent326941b22806cbf2df1fbfe902b7908b368cce42
io_uring/tctx: check for setup tctx->io_wq before teardown

As with the idling code before it, the error exit path should check for
a NULL tctx->io_wq before calling io_wq_put_and_exit().

Fixes: 7880174e1e5e ("io_uring/tctx: clean up __io_uring_add_tctx_node() error handling")
Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Clément Léger <cleger@meta.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/tctx.c