Skip to content

Commit fab4fb5

Browse files
committed
Merge branch 'io_uring-7.1' into for-next
* io_uring-7.1: io_uring/tctx: check for setup tctx->io_wq before teardown
2 parents 02a6073 + 042ff84 commit fab4fb5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

io_uring/tctx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ int __io_uring_add_tctx_node(struct io_ring_ctx *ctx)
171171
}
172172
if (!current->io_uring) {
173173
err_free:
174-
io_wq_put_and_exit(tctx->io_wq);
174+
if (tctx->io_wq)
175+
io_wq_put_and_exit(tctx->io_wq);
175176
percpu_counter_destroy(&tctx->inflight);
176177
kfree(tctx);
177178
}

0 commit comments

Comments
 (0)