]> www.infradead.org Git - users/dwmw2/linux.git/commit
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:05:05 +0000 (09:05 +0200)
commitc33d717e064afb4ea8ef75a31a8877814d33abbe
treeb969bc579650c5addbeaa325b8065aa03576f37c
parent9591967ac4d54d00d716dfccb1901982e8dd57f4
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