Skip to content
Commit 1a15267b authored by Yang Yingliang's avatar Yang Yingliang Committed by Jakub Kicinski
Browse files

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: 634db83b

 ("net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220428095716.540452-1-yangyingliang@huawei.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a9e9b091
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment