Skip to content

Commit a260abd

Browse files
John Soni Josesashalevin
authored andcommitted
be2iscsi: Fix kernel panic when device initialization fails
[ Upstream commit 2e7cee0 ] Kernel panic was happening as iscsi_host_remove() was called on a host which was not yet added. Signed-off-by: John Soni Jose <sony.john-n@emulex.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Cc: <stable@vger.kernel.org> Signed-off-by: James Bottomley <JBottomley@Odin.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent 862158f commit a260abd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/scsi/be2iscsi/be_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5735,9 +5735,9 @@ static int beiscsi_dev_probe(struct pci_dev *pcidev,
57355735
hba_free:
57365736
if (phba->msix_enabled)
57375737
pci_disable_msix(phba->pcidev);
5738-
iscsi_host_remove(phba->shost);
57395738
pci_dev_put(phba->pcidev);
57405739
iscsi_host_free(phba->shost);
5740+
pci_set_drvdata(pcidev, NULL);
57415741
disable_pci:
57425742
pci_disable_device(pcidev);
57435743
return ret;

0 commit comments

Comments
 (0)