Skip to content

Commit cb33766

Browse files
tititiou36davem330
authored andcommitted
qlcnic: Fix an error handling path in 'qlcnic_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: 451724c ("qlcnic: aer support") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e175aef commit cb33766

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2690,6 +2690,7 @@ qlcnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
26902690
kfree(ahw);
26912691

26922692
err_out_free_res:
2693+
pci_disable_pcie_error_reporting(pdev);
26932694
pci_release_regions(pdev);
26942695

26952696
err_out_disable_pdev:

0 commit comments

Comments
 (0)