diff options
| author | Jens Axboe <axboe@kernel.dk> | 2026-02-12 05:47:38 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-02-12 06:31:58 +0300 |
| commit | d7d95207caf41a8b5a595ed257cb4ce69726d3d7 (patch) | |
| tree | de3c62a023735ffa4e1e9800da4cde3262f2d74b | |
| parent | f4d0668b38d8784f33a9a36c72ed5d0078247538 (diff) | |
| download | linux-d7d95207caf41a8b5a595ed257cb4ce69726d3d7.tar.xz | |
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>
| -rw-r--r-- | io_uring/io_uring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 3a7be1695c39..c45af82dda3d 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -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); |
