[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <161964421006.17892.589586233736680474.git-patchwork-notify@kernel.org>
Date: Wed, 28 Apr 2021 21:10:10 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Colin King <colin.king@...onical.com>
Cc: woojung.huh@...rochip.com, UNGLinuxDriver@...rochip.com,
andrew@...n.ch, vivien.didelot@...il.com, f.fainelli@...il.com,
olteanv@...il.com, davem@...emloft.net, kuba@...nel.org,
marex@...x.de, Tristram.Ha@...rochip.com, netdev@...r.kernel.org,
kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH][next] net: dsa: ksz: Make reg_mib_cnt a u8 as it never
exceeds 255
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Wed, 28 Apr 2021 13:00:10 +0100 you wrote:
> From: Colin Ian King <colin.king@...onical.com>
>
> Currently the for-loop in ksz8_port_init_cnt is causing a static
> analysis infinite loop warning with the comparison of
> mib->cnt_ptr < dev->reg_mib_cnt. This occurs because mib->cnt_ptr
> is a u8 and dev->reg_mib_cnt is an int and the analyzer determines
> that mib->cnt_ptr potentially can wrap around to zero if the value
> in dev->reg_mib_cnt is > 255. However, this value is never this
> large, it is always less than 256 so make reg_mib_cnt a u8.
>
> [...]
Here is the summary with links:
- [next] net: dsa: ksz: Make reg_mib_cnt a u8 as it never exceeds 255
https://git.kernel.org/netdev/net-next/c/12c2bb96c3f1
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists