On Tue, 16 Dec 2008, Dave Jones wrote: > On Tue, Dec 09, 2008 at 04:45:39PM -0800, Anirban Chakraborty wrote: > > + memset(vha->req_ques, sizeof(vha->req_ques) * QLA_MAX_HOST_QUES, 0); > > ITYM > > + memset(vha->req_ques, 0, sizeof(vha->req_ques) * QLA_MAX_HOST_QUES); > > Dave Sorry about that. Thanks for pointing it out. Please apply, Anirban Signed-off-by: Anirban Chakraborty <anirban.chakraborty@xxxxxxxxxx> --- drivers/scsi/qla2xxx/qla_mid.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c index 55730f4..386ffea 100644 --- a/drivers/scsi/qla2xxx/qla_mid.c +++ b/drivers/scsi/qla2xxx/qla_mid.c @@ -396,7 +396,7 @@ qla24xx_create_vhost(struct fc_vport *fc_vport) qla2x00_start_timer(vha, qla2x00_timer, WATCH_INTERVAL); - memset(vha->req_ques, sizeof(vha->req_ques) * QLA_MAX_HOST_QUES, 0); + memset(vha->req_ques, 0, sizeof(vha->req_ques) * QLA_MAX_HOST_QUES); vha->req_ques[0] = ha->req_q_map[0]->id; host->can_queue = ha->req_q_map[0]->length + 128; host->this_id = 255; -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html