diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-06-12 14:53:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-14 12:17:01 -0700 |
commit | 49a10c7b176295f8fafb338911cf028e97f65f4d (patch) | |
tree | 9edebebf3fba6ec71b8e63f50bca3dd7bd3ff786 /drivers/net/ethernet/qlogic | |
parent | cb3376604a676e0302258b01893911bdd7aa5278 (diff) | |
download | linux-49a10c7b176295f8fafb338911cf028e97f65f4d.tar.bz2 |
netxen_nic: Fix an error handling path in 'netxen_nic_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: e87ad5539343 ("netxen: support pci error handlers")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic')
-rw-r--r-- | drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c index 7e6bac85495d..344ea1143454 100644 --- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c +++ b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c @@ -1602,6 +1602,8 @@ err_out_free_netdev: free_netdev(netdev); err_out_free_res: + if (NX_IS_REVISION_P3(pdev->revision)) + pci_disable_pcie_error_reporting(pdev); pci_release_regions(pdev); err_out_disable_pdev: |