diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-06-12 09:18:34 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-20 16:16:15 +0200 |
commit | 5b02f5892657f385502c93ab42289ea4fbf05cf1 (patch) | |
tree | 1730dc99ddc33db8a0046291e6af3f8da0aaac66 | |
parent | 83723802bdb17310228a1414ea4ec4bd78720d8b (diff) | |
download | linux-stable-5b02f5892657f385502c93ab42289ea4fbf05cf1.tar.gz linux-stable-5b02f5892657f385502c93ab42289ea4fbf05cf1.tar.bz2 linux-stable-5b02f5892657f385502c93ab42289ea4fbf05cf1.zip |
scsi: be2iscsi: Fix an error handling path in beiscsi_dev_probe()
[ Upstream commit 030e4138d11fced3b831c2761e4cecf347bae99c ]
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: 3567f36a09d1 ("[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index a5b807c676fc..50e9b4b68357 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -5764,6 +5764,7 @@ free_hba: pci_disable_msix(phba->pcidev); pci_dev_put(phba->pcidev); iscsi_host_free(phba->shost); + pci_disable_pcie_error_reporting(pcidev); pci_set_drvdata(pcidev, NULL); disable_pci: pci_release_regions(pcidev); |