Re: [PATCH] clk: sunxi-ng: common: Don't call hw_to_ccu_common on hw without common
From: Chen-Yu Tsai
Date: Sun Jun 30 2024 - 11:34:14 EST
From: Chen-Yu Tsai <wens@xxxxxxxx>
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@xxxxxxxxxx: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@xxxxxxxx>