Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 -1
+1 -1
io_uring/io_uring.c
··· 2398 2398 static __cold void io_ring_ctx_wait_and_kill(struct io_ring_ctx *ctx) 2399 2399 { 2400 2400 unsigned long index; 2401 - struct creds *creds; 2401 + struct cred *creds; 2402 2402 2403 2403 mutex_lock(&ctx->uring_lock); 2404 2404 percpu_ref_kill(&ctx->refs);