projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6690e0d
)
lpfc: Fix crash in fcp command completion path.
author
James Smart
<
[email protected]
>
Wed, 16 Dec 2015 23:11:57 +0000
(18:11 -0500)
committer
Martin K. Petersen
<
[email protected]
>
Tue, 22 Dec 2015 02:54:30 +0000
(21:54 -0500)
Fix crash in fcp command completion path.
Missed null check.
Signed-off-by: Dick Kennedy <
[email protected]
>
Signed-off-by: James Smart <
[email protected]
>
Reviewed-by: Hannes Reinicke <
[email protected]
>
Signed-off-by: Martin K. Petersen <
[email protected]
>
drivers/scsi/lpfc/lpfc_scsi.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/lpfc/lpfc_scsi.c
b/drivers/scsi/lpfc/lpfc_scsi.c
index 4679ed4444a737e906342473031397b2137443ff..ab446f83fba6fcd0a35a4e44429ff9758ed2bde3 100644
(file)
--- 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,
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);