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 3a0a690 commit 07db298Copy full SHA for 07db298
fs/io_uring.c
@@ -7229,8 +7229,6 @@ static void io_sq_thread_finish(struct io_ring_ctx *ctx)
7229
7230
io_put_sq_data(sqd);
7231
ctx->sq_data = NULL;
7232
- if (ctx->sq_creds)
7233
- put_cred(ctx->sq_creds);
7234
}
7235
7236
@@ -8425,6 +8423,8 @@ static void io_ring_ctx_free(struct io_ring_ctx *ctx)
8425
8423
mutex_unlock(&ctx->uring_lock);
8426
8424
io_eventfd_unregister(ctx);
8427
io_destroy_buffers(ctx);
+ if (ctx->sq_creds)
+ put_cred(ctx->sq_creds);
8428
8429
/* there are no registered resources left, nobody uses it */
8430
if (ctx->rsrc_node)
0 commit comments