Skip to content

Commit d7d9520

Browse files
committed
io_uring: use the right type for creds iteration
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>
1 parent f4d0668 commit d7d9520

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/io_uring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2398,7 +2398,7 @@ static __cold void io_ring_exit_work(struct work_struct *work)
23982398
static __cold void io_ring_ctx_wait_and_kill(struct io_ring_ctx *ctx)
23992399
{
24002400
unsigned long index;
2401-
struct creds *creds;
2401+
struct cred *creds;
24022402

24032403
mutex_lock(&ctx->uring_lock);
24042404
percpu_ref_kill(&ctx->refs);

0 commit comments

Comments
 (0)