[lvc-project] [PATCH] net: phy: mdio-bcm-unimac: Cast denominator to unsigned long to avoid overflow

Jakub Kicinski kuba at kernel.org
Sat Mar 9 06:52:19 MSK 2024


On Thu, 7 Mar 2024 12:21:26 -0800 Florian Fainelli wrote:
> On 3/7/2024 5:19 AM, Daniil Dulov wrote:
> > The expression priv->clk_freq * 2 can lead to overflow that will cause
> > a division by zero. So, let's cast it to unsigned long to avoid it.  
> 
> It will not in real life because the maximum clock frequency is 250MHz, 
> but it also does not hurt.

If that's the case - Daniil, could you respin against net-next without
the Fixes tag? Otherwise it'll cause a conflict, if it's not a real
issue no point creating an extra hassle.
-- 
pw-bot: cr



More information about the lvc-project mailing list