[PATCH] soc: rockchip: grf: Fix device node reference leak in rockchip_grf_init()
Heiko Stübner
heiko at sntech.de
Sat Feb 21 07:28:08 PST 2026
Hi Felix,
Am Montag, 16. Februar 2026, 21:11:32 Mitteleuropäische Normalzeit schrieb Felix Gu:
> In rockchip_grf_init(), when syscon_node_to_regmap fails, it returns
> without calling of_node_put(), which causes a reference leak.
>
> Add the missing of_node_put() call to fix it.
>
> Fixes: 75fb63ae0312 ("soc: rockchip: grf: Support multiple grf to be handled")
> Signed-off-by: Felix Gu <ustc.gu at gmail.com>
Shawn was a bit earlier with a similar fix [0], so their patch will go in.
Heiko
[0] https://lore.kernel.org/all/1770814957-17762-1-git-send-email-shawn.lin@rock-chips.com/
More information about the Linux-rockchip
mailing list