Commit 37bc1df4 authored by Liang He's avatar Liang He Committed by Zheng Zengkai
Browse files

net: sungem_phy: Add of_node_put() for reference returned by of_get_parent()

stable inclusion
from stable-v5.10.135
commit 5584fe9718a4d546a6ee531d0481ed3cdaca1e25
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5ZWFM

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



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

[ Upstream commit ebbbe23f ]

In bcm5421_init(), we should call of_node_put() for the reference
returned by of_get_parent() which has increased the refcount.

Fixes: 3c326fe9 ("[PATCH] ppc64: Add new PHY to sungem")
Signed-off-by: default avatarLiang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220720131003.1287426-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 avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent c7840bf2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment