Browse Source

[SCSI] be2iscsi: memset wrb for ring create

   This patch fixes a situation when  wrb was not being memset to zero
before being used

Signed-off-by: Jayamohan Kallickal <jayamohan.kallickal@emulex.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Jayamohan Kallickal 13 years ago
parent
commit
37609766bf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/scsi/be2iscsi/be_cmds.c

+ 1 - 0
drivers/scsi/be2iscsi/be_cmds.c

@@ -660,6 +660,7 @@ int beiscsi_cmd_mccq_create(struct beiscsi_hba *phba,
 	spin_lock(&phba->ctrl.mbox_lock);
 	ctrl = &phba->ctrl;
 	wrb = wrb_from_mbox(&ctrl->mbox_mem);
+	memset(wrb, 0, sizeof(*wrb));
 	req = embedded_payload(wrb);
 	ctxt = &req->context;