mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rich Baum <richbaum@acm.org>
To: linux-kernel@vger.kernel.org, Jens Axboe <axboe@suse.de>
Subject: [PATCH] fix drivers/scsi/imm.c in 2.5.3pre2
Date: Mon, 21 Jan 2002 23:25:51 -0500	[thread overview]
Message-ID: <6D914675512@coral.indstate.edu> (raw)

I've finally got the imm driver to work.  I have based this patch a patch 
posted by derek@signalmarketing.com for the ppa driver.  I've tested this and 
it works for me.  Please test this and send me any questions or comments you 
may have.  If no one has any problems I'll send it to Linus.

Also, I have a longer patch that gets rid of some #includes in imm.c that are 
also in imm.h.  I moved them to imm.h.  Let me know if I should post that 
patch as well.  It is mainly cosmetic and also works for me.

Thanks,
Rich


diff -urN -X dontdiff linux/drivers/scsi/imm.c linux-rb/drivers/scsi/imm.c
--- linux/drivers/scsi/imm.c	Sat Dec  8 23:02:47 2001
+++ linux-rb/drivers/scsi/imm.c	Mon Jan 21 14:39:30 2002
@@ -998,7 +998,7 @@
     case 4:
 	if (cmd->use_sg) {
 	    /* if many buffers are available, start filling the first */
-	    cmd->SCp.buffer = (struct scatterlist *) cmd->request_buffer;
+	    cmd->SCp.buffer = (struct scatterlist *) cmd->buffer;
 	    cmd->SCp.this_residual = cmd->SCp.buffer->length;
 	    cmd->SCp.ptr = page_address(cmd->SCp.buffer->page) + 
cmd->SCp.buffer->offset;
 	} else {
@@ -1007,7 +1007,7 @@
 	    cmd->SCp.this_residual = cmd->request_bufflen;
 	    cmd->SCp.ptr = cmd->request_buffer;
 	}
-	cmd->SCp.buffers_residual = cmd->use_sg;
+	cmd->SCp.buffers_residual = cmd->use_sg - 1;
 	cmd->SCp.phase++;
 	if (cmd->SCp.this_residual & 0x01)
 	    cmd->SCp.this_residual++;


                 reply	other threads:[~2002-01-22  5:02 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=6D914675512@coral.indstate.edu \
    --to=richbaum@acm.org \
    --cc=axboe@suse.de \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®