Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c90261dc authored by James Smart's avatar James Smart Committed by Martin K. Petersen
Browse files

lpfc: Fix crash in fcp command completion path.



Fix crash in fcp command completion path.

Missed null check.

Signed-off-by: default avatarDick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: default avatarJames Smart <james.smart@avagotech.com>
Reviewed-by: default avatarHannes Reinicke <hare@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 6690e0d4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3908,9 +3908,9 @@ lpfc_scsi_cmd_iocb_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pIocbIn,
	uint32_t logit = LOG_FCP;

	/* Sanity check on return of outstanding command */
	if (!(lpfc_cmd->pCmd))
		return;
	cmd = lpfc_cmd->pCmd;
	if (!cmd)
		return;
	shost = cmd->device->host;

	lpfc_cmd->result = (pIocbOut->iocb.un.ulpWord[4] & IOERR_PARAM_MASK);