]> git.baikalelectronics.ru Git - kernel.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)
committerJakub Kicinski <kuba@kernel.org>
Wed, 16 Dec 2020 19:37:31 +0000 (11:37 -0800)
commit7f7755c1dd23b72cf401ec6ecadafe1219dcb5b9
tree81b8761b1588d72fbe3c5a21bfc286343236a9e9
parent9b4ac34276c077f9103c60bcf99db7e4ae02cfdd
net: allwinner: Fix some resources leak in the error handling path of the probe and in the remove function

'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: 27caea3d7bb7 ("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>
drivers/net/ethernet/allwinner/sun4i-emac.c