]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: rockchip: grf: Add missing of_node_put() when returning
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 11 Feb 2026 13:02:37 +0000 (21:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Mar 2026 10:08:51 +0000 (11:08 +0100)
commit209551351a701de0927e39c11b76937fe360dc4e
treeb201aa2afbfed6ae138e2b66604d43f17b024fe2
parent44084194298cd07471652dc1573e1282a98b3341
soc: rockchip: grf: Add missing of_node_put() when returning

[ Upstream commit 24ed11ee5bacf9a9aca18fc6b47667c7f38d578b ]

Fix the smatch checking:
drivers/soc/rockchip/grf.c:249 rockchip_grf_init()
warn: inconsistent refcounting 'np->kobj.kref.refcount.refs.counter':

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: 75fb63ae0312 ("soc: rockchip: grf: Support multiple grf to be handled")
Closes: https://lore.kernel.org/all/aYXvgTcUJWQL2can@stanley.mountain/
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Link: https://patch.msgid.link/1770814957-17762-1-git-send-email-shawn.lin@rock-chips.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/rockchip/grf.c