net: ethernet: mtk_eth_wed: add missing of_node_put()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 17 Oct 2022 03:51:56 +0000 (11:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Oct 2022 08:35:06 +0000 (09:35 +0100)
commite0bb4659e235770e6f53b3692e958591f49448f5
tree7063bef29c9979b69ead17a1faf5e46a27209edd
parent9d4f20a476ca57e4c9246eb1fa2a61bea2354720
net: ethernet: mtk_eth_wed: add missing of_node_put()

The device_node pointer returned by of_parse_phandle() with refcount
incremented, when finish using it, the refcount need be decreased.

Fixes: 804775dfc288 ("net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_wed.c