Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Yi Zou <yi.zou@intel.com>
To: linux-scsi@vger.kernel.org
Subject: [PATCH] [FCoE] Bug in calling sg_set_page()
Date: Wed, 16 Jan 2008 11:09:37 -0800	[thread overview]
Message-ID: <20080116190936.3060.27051.stgit@zydesk> (raw)

Offset and length are not correctly passed to sg_set_page().

Signed-off-by: Yi Zou <yi.zou@intel.com>
---

 drivers/scsi/ofc/openfc/openfc_scsi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/ofc/openfc/openfc_scsi.c b/drivers/scsi/ofc/openfc/openfc_scsi.c
index 29d5cc8..63242be 100644
--- a/drivers/scsi/ofc/openfc/openfc_scsi.c
+++ b/drivers/scsi/ofc/openfc/openfc_scsi.c
@@ -322,8 +322,8 @@ static void openfc_scsi_send_data(struct fc_scsi_pkt *fsp, struct fc_seq *sp,
 			 */
 			ASSERT(fp->fr_sg_len < FC_FRAME_SG_LEN);
 			fsg = &fp->fr_sg[fp->fr_sg_len++];
-			sg_set_page(fsg, sg_page(sg), sg->offset + offset,
-				    sg_bytes);
+			sg_set_page(fsg, sg_page(sg),
+				    sg_bytes, sg->offset + offset);
 		} else {
 			u_int off = offset + sg->offset;
 


                 reply	other threads:[~2008-01-16 19:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20080116190936.3060.27051.stgit@zydesk \
    --to=yi.zou@intel.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