summaryrefslogtreecommitdiff
path: root/drivers/scsi/lpfc/lpfc_nportdisc.c
diff options
context:
space:
mode:
authorJames Bottomley <JBottomley@Parallels.com>2014-10-07 13:48:12 -0700
committerJames Bottomley <JBottomley@Parallels.com>2014-10-07 13:48:12 -0700
commit19ac97ff701ae3c0eda09dd88f590806f1c4eb2d (patch)
tree62bb6b6358783dc9d6c26f480fa378843abb0235 /drivers/scsi/lpfc/lpfc_nportdisc.c
parent24c20f10583647e30afe87b6f6d5e14bc7b1cbc6 (diff)
parente785060ea3a1c8e37a8bc1449c79e36bff2b5b13 (diff)
Merge remote-tracking branch 'scsi-queue/drivers-for-3.18' into for-linus
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nportdisc.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_nportdisc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_nportdisc.c b/drivers/scsi/lpfc/lpfc_nportdisc.c
index c342f6afd747..5cc1103d811e 100644
--- a/drivers/scsi/lpfc/lpfc_nportdisc.c
+++ b/drivers/scsi/lpfc/lpfc_nportdisc.c
@@ -1031,6 +1031,8 @@ lpfc_cmpl_plogi_plogi_issue(struct lpfc_vport *vport,
pcmd = (struct lpfc_dmabuf *) cmdiocb->context2;
prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, list);
+ if (!prsp)
+ goto out;
lp = (uint32_t *) prsp->virt;
sp = (struct serv_parm *) ((uint8_t *) lp + sizeof (uint32_t));