public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Anirban Chakraborty <anirban.chakraborty@qlogic.com>
To: Dave Jones <davej@redhat.com>
Cc: "James.Bottomley@HansenPartnership.com"
	<James.Bottomley@HansenPartnership.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	Linux Driver <Linux-Driver@qlogic.com>
Subject: Re: [PATCH] qla2xxx: support for multi- queue adapter
Date: Tue, 16 Dec 2008 17:41:52 -0800 (PST)	[thread overview]
Message-ID: <alpine.OSX.1.00.0812161738510.19084@ac-mac.local> (raw)
In-Reply-To: <20081216194745.GA20277@redhat.com>



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@qlogic.com>

---
 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;


      reply	other threads:[~2008-12-17  1:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10  0:45 [PATCH] qla2xxx: support for multi- queue adapter Anirban Chakraborty
2008-12-16 19:47 ` Dave Jones
2008-12-17  1:41   ` Anirban Chakraborty [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.OSX.1.00.0812161738510.19084@ac-mac.local \
    --to=anirban.chakraborty@qlogic.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=Linux-Driver@qlogic.com \
    --cc=davej@redhat.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox