]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b2f1548f06ddb9e240569bd178ec1a7dffaddf2
tree7063bef29c9979b69ead17a1faf5e46a27209edd
parentf47d35b3b4995c0ee7c4f8cf69f599270646c2b7
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: 7e7e0fcc79f5 ("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