mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
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>
This commit is contained in:
parent
f4d0668b38
commit
d7d95207ca
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue