Commit a8a5fe87 authored by Liang He's avatar Liang He Committed by Jialin Zhang
Browse files

of: mdio: Add of_node_put() when breaking out of for_each_xx

stable inclusion
from stable-v5.10.146
commit d58815af89791b4514eae2083f6cf2df8cdf2798
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0VX

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



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

[ Upstream commit 1c48709e ]

In of_mdiobus_register(), we should call of_node_put() for 'child'
escaped out of for_each_available_child_of_node().

Fixes: 66bdede4 ("of_mdio: Fix broken PHY IRQ in case of probe deferral")
Co-developed-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220913125659.3331969-1-windhl@126.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 70134d0d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment