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:Liang He <windhl@126.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com> (cherry picked from commit ecff61f4)
Loading
Please sign in to comment