[PATCH] clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common
Chen-Yu Tsai
wens at kernel.org
Sun Jun 30 08:34:02 PDT 2024
From: Chen-Yu Tsai <wens at csie.org>
On Sun, 23 Jun 2024 10:45:58 +0200, Frank Oltmanns wrote:
> In order to set the rate range of a hw sunxi_ccu_probe calls
> hw_to_ccu_common() assuming all entries in desc->ccu_clks are contained
> in a ccu_common struct. This assumption is incorrect and, in
> consequence, causes invalid pointer de-references.
>
> Remove the faulty call. Instead, add one more loop that iterates over
> the ccu_clks and sets the rate range, if required.
>
> [...]
Applied to clk-fixes-for-6.10 in git at github.com:linux-sunxi/linux-sunxi.git, thanks!
[1/1] clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common
commit: ea977d742507e534d9fe4f4d74256f6b7f589338
Best regards,
--
Chen-Yu Tsai <wens at csie.org>
More information about the linux-arm-kernel
mailing list