]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mt7530: add missing of_node_put() in mt7530_setup()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 28 Apr 2022 09:53:17 +0000 (17:53 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Apr 2022 02:23:55 +0000 (19:23 -0700)
commit5a48d5787858a0ca6eaf940e0b6e65a22bb21c43
tree47a284dc1a651064eabfaef83d6d2b44f5af4fb3
parentdfac95323f9f7a205c290cb45d129baee6a869df
net: dsa: mt7530: add missing of_node_put() in mt7530_setup()

Add of_node_put() if of_get_phy_mode() fails in mt7530_setup()

Fixes: 740caea64bf2 ("net: of_get_phy_mode: Change API to solve int/unit warnings")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220428095317.538829-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/mt7530.c