Skip to content

Commit c19c8c0

Browse files
tititiou36davem330
authored andcommitted
be2net: Fix an error handling path in 'be_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: d6b6d98 ("be2net: use PCIe AER capability") Signed-off-by: Christophe JAILLET <[email protected]> Acked-by: Somnath Kotur <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent da5ac77 commit c19c8c0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/emulex/benet/be_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5897,6 +5897,7 @@ static int be_probe(struct pci_dev *pdev, const struct pci_device_id *pdev_id)
58975897
unmap_bars:
58985898
be_unmap_pci_bars(adapter);
58995899
free_netdev:
5900+
pci_disable_pcie_error_reporting(pdev);
59005901
free_netdev(netdev);
59015902
rel_reg:
59025903
pci_release_regions(pdev);

0 commit comments

Comments
 (0)