Skip to contentSkip to conversation

lpfc 8.3.45: Fixed missing initialization for task management IOCBs

PATCH New James Smart 1 participant 1 message Feb 20, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/8 lpfc 8.3.45: Fixed missing initialization for task management IOCBs

Fixed missing initialization for task management IOCBs

---

 lpfc_scsi.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/scsi/lpfc/lpfc_scsi.c +2 -0
diff -upNr a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c
@@ -4423,6 +4423,8 @@ lpfc_scsi_prep_task_mgmt_cmd(struct lpfc
 	}
 	piocb->ulpFCP2Rcvy = (ndlp->nlp_fcp_info & NLP_FCP_2_DEVICE) ? 1 : 0;
 	piocb->ulpClass = (ndlp->nlp_fcp_info & 0x0f);
+	piocb->ulpPU = 0;
+	piocb->un.fcpi.fcpi_parm = 0;
 
 	/* ulpTimeout is only one byte */
 	if (lpfc_cmd->timeout > 0xff) {