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

Stephen Boyd sboyd at kernel.org
Thu Oct 12 23:47:29 UTC 2023


Quoting Dan Carpenter (2023-10-10 06:35:28)
> 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")
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
> ---

Applied to clk-fixes



More information about the Linux-stm32 mailing list