From: Jayamohan Kallickal Date: Sat, 8 Oct 2011 00:31:11 +0000 (-0500) Subject: [SCSI] be2iscsi: memset wrb for ring create X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=37609766bf0f84b65b2181c17a7490eef139cdd1;p=linux-beck.git [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 Signed-off-by: Mike Christie Signed-off-by: James Bottomley --- 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, 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;