Commit 25fba3f4 authored by Liang He's avatar Liang He Committed by openeuler-sync-bot
Browse files

net: mdio: thunder: Add missing fwnode_handle_put()

stable inclusion
from stable-v5.10.177
commit 7aa3d03e1b308b4e8d640d11f516741bc4e81c99
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I88YNP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7aa3d03e1b308b4e8d640d11f516741bc4e81c99



--------------------------------

[ Upstream commit b1de5c78 ]

In device_for_each_child_node(), we should add fwnode_handle_put()
when break out of the iteration device_for_each_child_node()
as it will automatically increase and decrease the refcounter.

Fixes: 379d7ac7 ("phy: mdio-thunder: Add driver for Cavium Thunder SoC MDIO buses.")
Signed-off-by: default avatarLiang He <windhl@126.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit ecff61f4)
parent 2974f837
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment