]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: allwinner: Fix some resources leak in the error handling path of the probe and...
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 14 Dec 2020 20:21:17 +0000 (21:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:26:04 +0000 (11:26 +0100)
commitf013417209a6f01e0c5b34886b9f043d444b3e2c
tree5bbc292eb424b25e0d4eb5096e49d0a3e981cd8e
parent5fa570e8e1bfec861c173c5a850035540513d466
net: allwinner: Fix some resources leak in the error handling path of the probe and in the remove function

[ Upstream commit 322e53d1e2529ae9d501f5e0f20604a79b873aef ]

'irq_of_parse_and_map()' should be balanced by a corresponding
'irq_dispose_mapping()' call. Otherwise, there is some resources leaks.

Add such a call in the error handling path of the probe function and in the
remove function.

Fixes: 492205050d77 ("net: Add EMAC ethernet driver found on Allwinner A10 SoC's")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20201214202117.146293-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/allwinner/sun4i-emac.c