net: fec: add missing of_node_put() in fec_enet_init_stop_mode()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 26 Apr 2022 12:52:31 +0000 (20:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:38 +0000 (09:14 +0200)
commita83ee2d81b34a5c2c4acdc9e5ea05ef6d6f3b5d6
tree9e6f3211bcb331fc6040e0381c6d94d6bb8c7ece
parent925ebcac26e480f15e94cdc6e248d67cc198fb77
net: fec: add missing of_node_put() in fec_enet_init_stop_mode()

[ Upstream commit d2b52ec056d5bddb055c8f21d7489a23548d0838 ]

Put device node in error path in fec_enet_init_stop_mode().

Fixes: 8a448bf832af ("net: ethernet: fec: move GPR register offset and bit into DT")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20220426125231.375688-1-yangyingliang@huawei.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/fec_main.c