]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-sun8i: add missing of_node_put() in sun8i_dwmac_register_mdio_mux()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 28 Apr 2022 09:57:16 +0000 (17:57 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Apr 2022 02:24:08 +0000 (19:24 -0700)
commitd152f2885302b5d3b73c102c525065a6c7add92a
tree48301823ee5edae1a3805b6e6ea35bf89a245739
parent5a48d5787858a0ca6eaf940e0b6e65a22bb21c43
net: stmmac: dwmac-sun8i: add missing of_node_put() in sun8i_dwmac_register_mdio_mux()

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

Fixes: b1a2a9eb0a76 ("net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220428095716.540452-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c