From: Jens Axboe <axboe@suse.de>
To: "Sebastian Dröge" <sebastian.droege@gmx.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.1-pre2 compile error in ide-scsi.o ide-scsi.c
Date: Wed, 28 Nov 2001 15:37:18 +0100 [thread overview]
Message-ID: <20011128153718.D23858@suse.de> (raw)
In-Reply-To: <20011128135552.204311E532@Cantor.suse.de> <20011128145858.A23858@suse.de> <20011128140246.318A01E560@Cantor.suse.de> <20011128150717.C23858@suse.de>
In-Reply-To: <20011128150717.C23858@suse.de>
[-- Attachment #1: Type: text/plain, Size: 708 bytes --]
On Wed, Nov 28 2001, Jens Axboe wrote:
> On Wed, Nov 28 2001, Sebastian Dröge wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Am Mittwoch, 28. November 2001 14:58 schrieben Sie:
> > > On Wed, Nov 28 2001, Sebastian Dröge wrote:
> > > > -----BEGIN PGP SIGNED MESSAGE-----
> > > > Hash: SHA1
> > > >
> > > > Hi Jens,
> > > > your patch doesn't work for ide-scsi
> > > > I get this oops when trying to mount a CD:
> > >
> > > [oops in sr_scatter_pad]
> > >
> > > Hmm ok, and 2.5.1-pre1 works for you right?
> >
> > Yes it works very well
>
> Ok, thanks for confirming that. Going to take a look at it now.
Does this work for you? Apply on top of what you already have.
--
Jens Axboe
[-- Attachment #2: sr-sg-1 --]
[-- Type: text/plain, Size: 1096 bytes --]
--- /opt/kernel/linux-2.5.1-pre2/drivers/scsi/sr.c Wed Nov 28 09:13:59 2001
+++ drivers/scsi/sr.c Wed Nov 28 15:33:25 2001
@@ -326,11 +326,14 @@
}
if (old_sg) {
memcpy(sg + i, old_sg, SCpnt->use_sg * sizeof(struct scatterlist));
- memcpy(bbpnt + i, old_bbpnt, SCpnt->use_sg * sizeof(void *));
+ if (old_bbpnt)
+ memcpy(bbpnt + i, old_bbpnt, SCpnt->use_sg * sizeof(void *));
scsi_free(old_sg, (((SCpnt->use_sg * sizeof(struct scatterlist)) +
(SCpnt->use_sg * sizeof(void *))) + 511) & ~511);
} else {
- sg[i].address = SCpnt->request_buffer;
+ sg[i].address = NULL;
+ sg[i].page = virt_to_page(SCpnt->request_buffer);
+ sg[i].offset = (unsigned long) SCpnt->request_buffer&~PAGE_MASK;
sg[i].length = SCpnt->request_bufflen;
}
@@ -340,7 +343,9 @@
SCpnt->use_sg += i;
if (bsize) {
- sg[SCpnt->use_sg].address = back;
+ sg[SCpnt->use_sg].address = NULL;
+ sg[SCpnt->use_sg].page = virt_to_page(back);
+ sg[SCpnt->use_sg].offset = (unsigned long) back & ~PAGE_MASK;
bbpnt[SCpnt->use_sg] = back;
sg[SCpnt->use_sg].length = bsize;
SCpnt->use_sg++;
next prev parent reply other threads:[~2001-11-28 14:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20011128135552.204311E532@Cantor.suse.de>
2001-11-28 13:58 ` 2.5.1-pre2 compile error in ide-scsi.o ide-scsi.c Jens Axboe
2001-11-28 14:04 ` Sebastian Dröge
[not found] ` <20011128140246.318A01E560@Cantor.suse.de>
2001-11-28 14:07 ` Jens Axboe
2001-11-28 14:37 ` Jens Axboe [this message]
2001-11-28 14:52 ` Sebastian Dröge
2001-11-29 13:26 ` Slo Mo Snail
2001-11-29 13:33 ` Sebastian Dröge
2001-11-29 14:06 ` Slo Mo Snail
[not found] ` <20011129140517.8650E1E122@Cantor.suse.de>
2001-11-29 14:23 ` Jens Axboe
2001-11-29 14:37 ` Sebastian Dröge
[not found] ` <20011129143538.3A4F81E128@Cantor.suse.de>
2001-11-29 16:54 ` Jens Axboe
2001-12-13 21:28 ` Unable to handle kernel NULL pointer dereference at virtual address 00000000 (Was: Re: 2.5.1-pre2 compile error in ide-scsi.o ide-scsi.c) Roger Larsson
2001-12-14 0:13 ` Roger Larsson
2001-11-28 13:57 2.5.1-pre2 compile error in ide-scsi.o ide-scsi.c Sebastian Dröge
-- strict thread matches above, loose matches on Subject: below --
2001-11-27 20:49 Sebastian Dröge
2001-11-27 21:37 ` Slo Mo Snail
2001-11-28 10:21 ` Jens Axboe
2001-11-28 10:07 ` Martin Dalecki
2001-11-27 20:02 Sebastian Dröge
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=20011128153718.D23858@suse.de \
--to=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sebastian.droege@gmx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.