[PATCH v3 2/2] clk: imx: imx6q: Fix device node reference leak in of_assigned_ldb_sels()
Abel Vesa
abel.vesa at oss.qualcomm.com
Tue Mar 3 04:13:34 PST 2026
On 26-02-03 12:34:05, Frank Li wrote:
> On Tue, Feb 03, 2026 at 10:07:58PM +0800, Felix Gu wrote:
> > The function of_assigned_ldb_sels() calls of_parse_phandle_with_args()
> > but never calls of_node_put() to release the reference, causing a memory
> > leak.
> >
> > Fix this by adding proper cleanup calls on all exit paths.
> >
> > Fixes: 5d283b083800 ("clk: imx6: Fix procedure to switch the parent of LDB_DI_CLK")
> > Signed-off-by: Felix Gu <ustc.gu at gmail.com>
> > ---
> Reviewed-by: Frank Li <Frank.Li at nxp.com>
Frank, please trim your replies.
Thanks.
More information about the linux-arm-kernel
mailing list