Skip to content

Commit 030e413

Browse files
tititiou36martinkpetersen
authored andcommitted
scsi: be2iscsi: Fix an error handling path in beiscsi_dev_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. Link: https://lore.kernel.org/r/77adb02cfea7f1364e5603ecf3930d8597ae356e.1623482155.git.christophe.jaillet@wanadoo.fr Fixes: 3567f36 ("[SCSI] be2iscsi: Fix AER handling in driver") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 75d645a commit 030e413

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/scsi/be2iscsi/be_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5743,6 +5743,7 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev,
57435743
pci_disable_msix(phba->pcidev);
57445744
pci_dev_put(phba->pcidev);
57455745
iscsi_host_free(phba->shost);
5746+
pci_disable_pcie_error_reporting(pcidev);
57465747
pci_set_drvdata(pcidev, NULL);
57475748
disable_pci:
57485749
pci_release_regions(pcidev);

0 commit comments

Comments
 (0)