]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
io_uring: use the right type for creds iteration
authorJens Axboe <axboe@kernel.dk>
Thu, 12 Feb 2026 02:47:38 +0000 (19:47 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Feb 2026 03:31:58 +0000 (20:31 -0700)
In io_ring_ctx_wait_and_kill(), struct creds *creds is used to
iterate and prune credentials. But the correct type is struct cred.
This doesn't matter as the variable isn't used at all, only the index
is used. But it's confusing using a type that isn't valid, so fix it
up.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c

index 3a7be1695c3927fe479d5ad0958568f26add0090..c45af82dda3dd14240bd97eda8ba13f98ca010e8 100644 (file)
@@ -2398,7 +2398,7 @@ static __cold void io_ring_exit_work(struct work_struct *work)
 static __cold void io_ring_ctx_wait_and_kill(struct io_ring_ctx *ctx)
 {
        unsigned long index;
-       struct creds *creds;
+       struct cred *creds;
 
        mutex_lock(&ctx->uring_lock);
        percpu_ref_kill(&ctx->refs);