net: amd: add missing of_node_put()
authorYangtao Li <tiny.windzz@gmail.com>
Thu, 22 Nov 2018 12:34:41 +0000 (07:34 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:18:50 +0000 (09:18 +0100)
commitccbffb5d7dc88b7e7eecf504d8fa2a271f10ee16
tree43e52dd4cbe919d97dc7c12cb35f6fc836a8255f
parent63e307e81cffa11dbc8b513ee2b951ffa59fc61c
net: amd: add missing of_node_put()

[ Upstream commit c44c749d3b6fdfca39002e7e48e03fe9f9fe37a3 ]

of_find_node_by_path() acquires a reference to the node
returned by it and that reference needs to be dropped by its caller.
This place doesn't do that, so fix it.

Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/amd/sunlance.c