Re: drivers/net/ethernet/intel/igb/igb_main.c:7895:6-11: ERROR: invalid reference to the index variable of the iterator on line 7890 (fwd)

From: Dan Carpenter
Date: Wed Sep 25 2024 - 03:15:34 EST


On Mon, Sep 23, 2024 at 03:01:25PM +0100, Simon Horman wrote:
> + Dan Carpenter, Rafal Romanowski, netdev
>
> On Fri, Sep 13, 2024 at 07:51:48PM +0200, Julia Lawall wrote:
> > On line 7895, entry is never NULL, even if you are at the end (which is
> > the same as the beginning) of the list.
> >
> > julia
>
> Hi Julia, all,
>
> Unless I am mistaken (it often happens) this is an issue
> from about a year ago what was fixed within the same
> time frame by Dan Carpenter in:
>
> - 4690aea589e7 ("igb: Fix an end of loop test")
> https://git.kernel.org/netdev/net/c/4690aea589e7
>

Yeah. It's weird that the zero day bot is flagging this as a new warning
"branch date: 18 hours ago" when it was fixed last year.

regards,
dan carpenter