[Linux-stm32] [PATCH] clk: stm32: Fix a signedness issue in clk_stm32_composite_determine_rate()

Maxime Ripard mripard at kernel.org
Thu Oct 12 07:38:49 UTC 2023


On Tue, 10 Oct 2023 16:35:28 +0300, Dan Carpenter wrote:
> The divider_ro_round_rate() function could potentially return -EINVAL on
> error but the error handling doesn't work because "rate" is unsigned.
> It should be a type long.
> 
> Fixes: 06ed0fc0fbac ("clk: stm32: composite: Switch to determine_rate")
> 
> [ ... ]

Acked-by: Maxime Ripard <mripard at kernel.org>

Thanks!
Maxime



More information about the Linux-stm32 mailing list