]> git.baikalelectronics.ru Git - kernel.git/commit
xgene-v2: Fix a resource leak in the error handling path of 'xge_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Aug 2021 07:35:23 +0000 (09:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Aug 2021 10:23:48 +0000 (11:23 +0100)
commit31f00d6fa8821e873aec6bce4dc7ea7d4d1665ce
treebf0370d29c7270749031225f7e1a9661a86c2007
parent7f5dc5434770791146a23cb5e2ebdfdf8e282b62
xgene-v2: Fix a resource leak in the error handling path of 'xge_probe()'

A successful 'xge_mdio_config()' call should be balanced by a corresponding
'xge_mdio_remove()' call in the error handling path of the probe, as
already done in the remove function.

Update the error handling path accordingly.

Fixes: 749e68bb08e6 ("drivers: net: xgene-v2: Add MDIO support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/apm/xgene-v2/main.c