mirror of https://gitee.com/openkylin/linux.git
[SCSI] be2iscsi: fix null dereference on error path
"phba" is always null here so we can't dereference it. Signed-off-by: Dan Carpenter <error27@gmail.com> Reviewed-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
1462b8ffd9
commit
82284c09c5
|
@ -3774,8 +3774,8 @@ static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev,
|
|||
|
||||
ret = beiscsi_enable_pci(pcidev);
|
||||
if (ret < 0) {
|
||||
shost_printk(KERN_ERR, phba->shost, "beiscsi_dev_probe-"
|
||||
"Failed to enable pci device \n");
|
||||
dev_err(&pcidev->dev, "beiscsi_dev_probe-"
|
||||
" Failed to enable pci device\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue