aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJayamohan Kallickal <jayamohan.kallickal@emulex.com>2011-10-07 20:31:11 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-10-16 12:03:40 -0400
commit37609766bf0f84b65b2181c17a7490eef139cdd1 (patch)
treee291aaf72344968ea2fca938921c57413522abfa
parentbd5354511d00cb9c81c64b0544786807a2209488 (diff)
[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>
-rw-r--r--drivers/scsi/be2iscsi/be_cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/be2iscsi/be_cmds.c b/drivers/scsi/be2iscsi/be_cmds.c
index 67fd831e79c2..cdb15364bc69 100644
--- a/drivers/scsi/be2iscsi/be_cmds.c
+++ b/drivers/scsi/be2iscsi/be_cmds.c
@@ -660,6 +660,7 @@ int beiscsi_cmd_mccq_create(struct beiscsi_hba *phba,
660 spin_lock(&phba->ctrl.mbox_lock); 660 spin_lock(&phba->ctrl.mbox_lock);
661 ctrl = &phba->ctrl; 661 ctrl = &phba->ctrl;
662 wrb = wrb_from_mbox(&ctrl->mbox_mem); 662 wrb = wrb_from_mbox(&ctrl->mbox_mem);
663 memset(wrb, 0, sizeof(*wrb));
663 req = embedded_payload(wrb); 664 req = embedded_payload(wrb);
664 ctxt = &req->context; 665 ctxt = &req->context;
665 666