Commit 9d133053 authored by Pan Bian's avatar Pan Bian Committed by Zheng Zengkai
Browse files

net: dsa: bcm_sf2: put device node before return



stable inclusion
from stable-5.10.14
commit 370ce41d2e5847f120e251067e4943e5fd1a3541
bugzilla: 48051

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

commit cf3c4663 upstream.

Put the device node dn before return error code on failure path.

Fixes: 461cd1b0 ("net: dsa: bcm_sf2: Register our slave MDIO bus")
Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Link: https://lore.kernel.org/r/20210121123343.26330-1-bianpan2016@163.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 4f9c28de
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment