]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
misc: ti_fpc202: fix a potential memory leak in probe function
authorFelix Gu <gu_0233@qq.com>
Fri, 26 Dec 2025 10:22:43 +0000 (18:22 +0800)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:40 +0000 (07:20 -0500)
commitdd16f314cb10e6807c74402efdfa2cccc1f15907
treee858f2cf580efb6b297709bb8c0062613e045eb3
parentd9b5c0528720e141cfd07d3d4308dce728c854d7
misc: ti_fpc202: fix a potential memory leak in probe function

[ Upstream commit dad9f13d967b4e53e8eaf5f9c690f8e778ad9802 ]

Use for_each_child_of_node_scoped() to simplify the code and ensure the
device node reference is automatically released when the loop scope
ends.

Signed-off-by: Felix Gu <gu_0233@qq.com>
Reviewed-by: Romain Gantois <romain.gantois@bootlin.com>
Link: https://patch.msgid.link/tencent_FA1AC670F5CF49873F88A44424F866994A08@qq.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/ti_fpc202.c