scsi: be2iscsi: Fix an error handling path in beiscsi_dev_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 12 Jun 2021 07:18:34 +0000 (09:18 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Jun 2021 03:00:01 +0000 (23:00 -0400)
commit030e4138d11fced3b831c2761e4cecf347bae99c
tree04c10d267c1d17751a8080eff2c1d7c3a2bbce9f
parent75d645a61cf9c960b20650914386f20f993f81bc
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: 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>
drivers/scsi/be2iscsi/be_main.c