提交 cd79fe4c 编写于 作者: C Christophe JAILLET 提交者: Yang Yingliang

scsi: be2iscsi: Fix an error handling path in beiscsi_dev_probe()

stable inclusion
from linux-4.19.198
commit 5b02f5892657f385502c93ab42289ea4fbf05cf1

--------------------------------

[ Upstream commit 030e4138 ]

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: 3567f36a ("[SCSI] be2iscsi: Fix AER handling in driver")
Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 47804690
...@@ -5764,6 +5764,7 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev, ...@@ -5764,6 +5764,7 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev,
pci_disable_msix(phba->pcidev); pci_disable_msix(phba->pcidev);
pci_dev_put(phba->pcidev); pci_dev_put(phba->pcidev);
iscsi_host_free(phba->shost); iscsi_host_free(phba->shost);
pci_disable_pcie_error_reporting(pcidev);
pci_set_drvdata(pcidev, NULL); pci_set_drvdata(pcidev, NULL);
disable_pci: disable_pci:
pci_release_regions(pcidev); pci_release_regions(pcidev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册