Commit 82284c09 authored by Dan Carpenter's avatar Dan Carpenter Committed by James Bottomley

[SCSI] be2iscsi: fix null dereference on error path

"phba" is always null here so we can't dereference it.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent 1462b8ff
...@@ -3774,8 +3774,8 @@ static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev, ...@@ -3774,8 +3774,8 @@ static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev,
ret = beiscsi_enable_pci(pcidev); ret = beiscsi_enable_pci(pcidev);
if (ret < 0) { if (ret < 0) {
shost_printk(KERN_ERR, phba->shost, "beiscsi_dev_probe-" dev_err(&pcidev->dev, "beiscsi_dev_probe-"
"Failed to enable pci device \n"); " Failed to enable pci device\n");
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment