On 4/17/25 4:00 PM, Kuniyuki Iwashima wrote:
From: Purva Yeshi <purvayeshi550@xxxxxxxxx>
Date: Thu, 17 Apr 2025 15:11:26 +0530
Fix Smatch-detected issue:
net/ipv4/route.c:605 fnhe_remove_oldest() error:
uninitialized symbol 'oldest_p'.
Initialize oldest_p to NULL to avoid uninitialized pointer warning in
fnhe_remove_oldest.
How does it remain uninitialised ?
update_or_create_fnhe() ensures the bucket is not empty before
calling fnhe_remove_oldest().
agreed. Not the simplest logic, but I do not see how oldest_p can be
unset after the loop.