Skip to content

Commit 49a10c7

Browse files
tititiou36davem330
authored andcommitted
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: e87ad55 ("netxen: support pci error handlers") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cb33766 commit 49a10c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,6 +1602,8 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
16021602
free_netdev(netdev);
16031603

16041604
err_out_free_res:
1605+
if (NX_IS_REVISION_P3(pdev->revision))
1606+
pci_disable_pcie_error_reporting(pdev);
16051607
pci_release_regions(pdev);
16061608

16071609
err_out_disable_pdev:

0 commit comments

Comments
 (0)