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.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: b78ac6ecd1b6 ("net: phy: mdio-bcm-unimac: Allow configuring MDIO clock divider")
Signed-off-by: Daniil Dulov <d.dulov@xxxxxxxxxx>
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature