Re: [PATCH] io_uring/io-wq: avoid garbge value of 'match' in io_wq_enqueue()
From: Jens Axboe
Date: Tue Jun 04 2024 - 09:40:34 EST
On Tue, 04 Jun 2024 20:12:43 +0800, Su Hui wrote:
> Clang static checker (scan-build) warning:
> o_uring/io-wq.c:line 1051, column 3
> The expression is an uninitialized value. The computed value will
> also be garbage.
>
> 'match.nr_pending' is used in io_acct_cancel_pending_work(), but it is
> not initialized. Change the order of assignment for 'match' to fix
> this problem.
>
> [...]
Applied, thanks!
[1/1] io_uring/io-wq: avoid garbge value of 'match' in io_wq_enqueue()
commit: e87863ed45a1c36b0d8a5b70134caf8c794d8d57
Best regards,
--
Jens Axboe