aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc
diff options
context:
space:
mode:
authorJames Smart <james.smart@avagotech.com>2015-12-16 18:11:57 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2015-12-21 21:54:30 -0500
commitc90261dcd86e4eb5c9c1627fde037e902db8aefa (patch)
treef65db68b943c156a359b4bcb228106e901052382 /drivers/scsi/lpfc
parent6690e0d4fc5cccf74534abe0c9f9a69032bc02f0 (diff)
lpfc: Fix crash in fcp command completion path.
Fix crash in fcp command completion path. Missed null check. Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com> Signed-off-by: James Smart <james.smart@avagotech.com> Reviewed-by: Hannes Reinicke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc')
-rw-r--r--drivers/scsi/lpfc/lpfc_scsi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
index 4679ed4444a7..ab446f83fba6 100644
--- a/drivers/scsi/lpfc/lpfc_scsi.c
+++ b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -3908,9 +3908,9 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn,
3908 uint32_t logit = LOG_FCP; 3908 uint32_t logit = LOG_FCP;
3909 3909
3910 /* Sanity check on return of outstanding command */ 3910 /* Sanity check on return of outstanding command */
3911 if (!(lpfc_cmd->pCmd))
3912 return;
3913 cmd = lpfc_cmd->pCmd; 3911 cmd = lpfc_cmd->pCmd;
3912 if (!cmd)
3913 return;
3914 shost = cmd->device->host; 3914 shost = cmd->device->host;
3915 3915
3916 lpfc_cmd->result = (pIocbOut->iocb.un.ulpWord[4] & IOERR_PARAM_MASK); 3916 lpfc_cmd->result = (pIocbOut->iocb.un.ulpWord[4] & IOERR_PARAM_MASK);