]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a068617e02df63535bf1a3febfa11d555ef769c
tree9b814c8b5f8ba904a3d54f87308843b351fbf4de
parent9bd2237afba35d008be38b03f327b5f5144e66ae
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: 9094352c0cf4 ("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