We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a3737d commit cef59d1Copy full SHA for cef59d1
io_uring/io_uring.c
@@ -2788,14 +2788,15 @@ static void io_rings_free(struct io_ring_ctx *ctx)
2788
if (!(ctx->flags & IORING_SETUP_NO_MMAP)) {
2789
io_mem_free(ctx->rings);
2790
io_mem_free(ctx->sq_sqes);
2791
- ctx->rings = NULL;
2792
- ctx->sq_sqes = NULL;
2793
} else {
2794
io_pages_free(&ctx->ring_pages, ctx->n_ring_pages);
2795
ctx->n_ring_pages = 0;
2796
io_pages_free(&ctx->sqe_pages, ctx->n_sqe_pages);
2797
ctx->n_sqe_pages = 0;
2798
}
+
+ ctx->rings = NULL;
2799
+ ctx->sq_sqes = NULL;
2800
2801
2802
void *io_mem_alloc(size_t size)
0 commit comments