Skip to contentSkip to conversation

io_uring: use the right type for creds iteration

PATCH New Jens Axboe 1 participant 1 message Feb 12 io_uring

lore
Share & tools
lore

Jens Axboe

author maintainer
#0 lore raw

PATCH 1/1 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.

---

io_uring/io_uring.c +1 -1
index e1dcf101ff70..3a2753f6b444 100644
@@ -2403,7 +2403,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);
Signature · 1 line
Jens Axboe