Skip to content
Commit 790437bb authored by Dan Carpenter's avatar Dan Carpenter Committed by Stephen Boyd
Browse files

clk: stm32: Fix a signedness issue in clk_stm32_composite_determine_rate()



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: 06ed0fc0 ("clk: stm32: composite: Switch to determine_rate")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/d9a78453-9b40-48c1-830e-00751ba3ecb8@kili.mountain


Acked-by: default avatarMaxime Ripard <mripard@kernel.org>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent ceb87a36
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment