[PATCH v2] clk: imx: pll14xx: Fix potential integer overflow

Peng Fan peng.fan at oss.nxp.com
Mon Nov 9 04:39:56 PST 2026


On Mon, Nov 09, 2026 at 01:31:38PM +0200, Stefan Ghetu wrote:
>From: Florin Pavelescu <florin.pavelescu at nxp.com>
>
>Cast to u64, so that multiplications and additions will be done
>in 64-bit arithmetic and the possibility of integer overflow is eliminated.
>
>Fixes: 53990cf9d5b48 ("clk: imx: pll14xx: consolidate rate calculation")
>Signed-off-by: Florin Pavelescu <florin.pavelescu at nxp.com>
>Signed-off-by: Stefan Ghetu <stefan.ghetu at nxp.com>

It will not overflow. See this:
https://lore.kernel.org/all/6181060a-ae36-4d0f-bfe0-c1e5c8a8ab3c@gmail.com/

If we do want to silence some warnings from tools, drop the Fixes tag,
and update to commit message accordingly.

Regards
Peng



More information about the linux-arm-kernel mailing list