Re: [PATCH] io_uring: Fix uninitialized use of ret in io_eventfd_register()

From: Ammar Faizi
Date: Wed Feb 09 2022 - 07:10:04 EST


On 2/9/22 5:26 PM, Jiapeng Chong wrote:
In some scenarios, ret is not assigned in the whole process, so it
needs to be initialized at the beginning.

Clean up the following clang warning:

fs/io_uring.c:9373:13: note: initialize the variable 'ret' to silence
this warning.

Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
---

This is already fixed in commit
4c65723081332607ca331072b0f8a90189e2e447 ("io_uring: Fix use of uninitialized ret in io_eventfd_register()")

https://lore.kernel.org/all/20220207162410.1013466-1-nathan@xxxxxxxxxx/T/

https://github.com/torvalds/linux/commit/4c65723081332607ca331072b0f8a90189e2e447.patch

--
Ammar Faizi