[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3682159f-05ff-417c-95e9-976f0a504c09@roeck-us.net>
Date: Wed, 10 Dec 2025 11:09:01 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Shuah Khan <shuah@...nel.org>, Christian Brauner <brauner@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>, Ingo Molnar <mingo@...hat.com>,
Eric Dumazet <edumazet@...gle.com>, Kees Cook <kees@...nel.org>,
linux-kernel@...r.kernel.org, linux-kselftest@...r.kernel.org,
wine-devel@...ehq.org, netdev@...r.kernel.org, bpf@...r.kernel.org
Subject: Re: [PATCH v2 08/13] selftests: net: netlink-dumps: Avoid
uninitialized variable warning
On 12/10/25 01:13, Jakub Kicinski wrote:
> On Fri, 5 Dec 2025 09:10:02 -0800 Guenter Roeck wrote:
>> The following warning is seen when building netlink-dumps.
>>
>> netlink-dumps.c: In function ‘dump_extack’:
>> ../kselftest_harness.h:788:35: warning: ‘ret’ may be used uninitialized
>>
>> Problem is that the loop which initializes 'ret' may exit early without
>> initializing the variable if recv() returns an error. Always initialize
>> 'ret' to solve the problem.
>
> Are you sure you're working off the latest tree? I think this should
> already be fixed by 13cb6ac5b50
>
Sorry for missing the fix. I was working off v6.18, which was the tip of
the tree when I wrote the patch.
> I applied the other 3 networking changes.
Thanks a lot!
Guenter
Powered by blists - more mailing lists