Re: [PATCH 6/6] watchdog: rzv2h: Avoid 32-bit overflow in max_hw_heartbeat_ms calculation
From: Guenter Roeck
Date: Thu Dec 03 2026 - 20:04:30 EST
On Thu, Dec 03, 2026 at 05:30:09PM +0000, Lee Jones wrote:
> For RZ/T2H SoCs, MILLI * timeout_cycles * cks_div equals 33,554,432,000,
> which overflows 32-bit unsigned long on 32-bit builds.
>
> Perform the multiplication in 64-bit arithmetic and divide using
> div64_ul().
>
> Fixes: 2b2069763527 ("watchdog: rzv2h: Add support for RZ/T2H")
> Closes: https://sashiko.dev/#/bug/linux-441577c6-bf0c-46ed-bc43-676afdcc85bf
> Signed-off-by: Lee Jones <lee@xxxxxxxxxx>
Applied.
Thanks,
Guenter