]> git.baikalelectronics.ru Git - kernel.git/commit
alx: Fix an error handling path in 'alx_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 11 Jun 2021 06:13:39 +0000 (08:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 18:12:54 +0000 (11:12 -0700)
commit33e381448cf7a05d76ac0b47d4a6531ecd0e5c53
tree8a2092bc61b2f5a15b82301eb06283ac6282768b
parentda9ef50f545f86ffe6ff786174d26500c4db737a
alx: Fix an error handling path in 'alx_probe()'

If an error occurs after a 'pci_enable_pcie_error_reporting()' call, it
must be undone by a corresponding 'pci_disable_pcie_error_reporting()'
call, as already done in the remove function.

Fixes: ab69bde6b2e9 ("alx: add a simple AR816x/AR817x device driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/main.c