Re: [PATCH 0/3] clk: imx: imx8qxp-lpcg: Fix the clock-indices parsing
From: Abel Vesa
Date: Sat Dec 05 2026 - 17:03:54 EST
On Mon, 02 Nov 2026 13:48:48 +0200, Abel Vesa wrote:
> imx_lpcg_parse_clks_from_dt() trusts the clock-indices property of the
> LPCG node. Duplicate entries leak a clock and make the error path
> unregister another one twice, and more entries than an LPCG has clock
> outputs overflow the on-stack arrays the property and the related
> clock names are read into. The first two patches reject both. The last
> one makes a failure to read the parent names return an error code
> instead of the number of clocks.
>
> [...]
Applied, thanks!
[1/3] clk: imx: imx8qxp-lpcg: Reject duplicate clock indices
commit: 1c13bef128b6644ab53e08e8b1d8fc5ae38d171d
[2/3] clk: imx: imx8qxp-lpcg: Fix stack overflow with too many clock indices
commit: 0e8978abd53e82556af0ce52a9ab4df961afb0c8
[3/3] clk: imx: imx8qxp-lpcg: Return an error if the parent names cannot be read
commit: 6eba3fd48a2e8e488063e43fcabe1ea84fe5a562
Best regards,
--
Abel