[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <9208ca5a-cdc8-9b73-a024-9b7cba14dfee@gmail.com>
Date: Tue, 17 May 2022 09:18:21 +0900
From: Taehee Yoo <ap420073@...il.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: davem@...emloft.net, pabeni@...hat.com, edumazet@...gle.com,
netdev@...r.kernel.org
Subject: Re: [PATCH net] amt: fix gateway mode stuck
On 5/17/22 08:10, Jakub Kicinski wrote:
Hi Jakub,
Thanks a lot for your review!
> On Sat, 14 May 2022 13:13:46 +0000 Taehee Yoo wrote:
>> - if (amt_advertisement_handler(amt, skb))
>> + err = amt_advertisement_handler(amt, skb);
>> + if (err)
>> amt->dev->stats.rx_dropped++;
>> - goto out;
>> + break;
>
> There's another amt->dev->stats.rx_dropped++; before the end of this
> function which now won't be skipped, I think you're counting twice.
This is intended.
It skips a remaining handling of advertisement message.
So, I think a memory leak would occur at this point, so I added.
Thanks!
Taehee Yoo
Powered by blists - more mailing lists