net: ethernet: mediatek: add missing of_node_put() in mtk_sgmii_init()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 28 Apr 2022 06:25:43 +0000 (14:25 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Apr 2022 00:57:12 +0000 (17:57 -0700)
commitff5265d45345d01fefc98fcb9ae891b59633c919
tree9b814c8b5f8ba904a3d54f87308843b351fbf4de
parent1e4e6904bb773a4ac5f082f76eb1a12c7a051970
net: ethernet: mediatek: add missing of_node_put() in mtk_sgmii_init()

The node pointer returned by of_parse_phandle() with refcount incremented,
so add of_node_put() after using it in mtk_sgmii_init().

Fixes: 9ffee4a8276c ("net: ethernet: mediatek: Extend SGMII related functions")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220428062543.64883-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/mtk_sgmii.c