From: Pete Zaitcev <zaitcev@redhat.com>
To: wpeter@us.ibm.com, linux-kernel@vger.kernel.org
Cc: Jens Axboe <axboe@suse.de>
Subject: Re: Encountered a Null Pointer Problem on the SCSI Layer
Date: Mon, 28 Jan 2002 18:17:54 -0500 [thread overview]
Message-ID: <200201282317.g0SNHs326065@devserv.devel.redhat.com> (raw)
In-Reply-To: <mailman.1012257244.13523.linux-kernel2news@redhat.com>
In-Reply-To: <mailman.1012257244.13523.linux-kernel2news@redhat.com>
> --- linux/drivers/scsi/sd.c Fri Jan 25 14:01:07 2002
> +++ linux-2.4.17-diskio/drivers/scsi/sd.c Fri Jan 25 13:57:01 2002
> @@ -279,7 +279,7 @@
> target = DEVICE_NR(dev);
>
> dpnt = &rscsi_disks[target];
> - if (!dpnt)
> + if (!dpnt->device)
> return NULL; /* No such device */
> return &dpnt->device->request_queue;
> }
> Wai Yee Peter Wong
There's one more of theese
--- linux-2.4.18-pre1/drivers/scsi/sd.c Fri Nov 9 14:05:06 2001
+++ linux-2.4.18-pre1-p3/drivers/scsi/sd.c Mon Jan 28 14:46:11 2002
@@ -302,7 +302,7 @@
dpnt = &rscsi_disks[dev];
if (devm >= (sd_template.dev_max << 4) ||
- !dpnt ||
+ !dpnt->device ||
!dpnt->device->online ||
block + SCpnt->request.nr_sectors > sd[devm].nr_sects) {
SCSI_LOG_HLQUEUE(2, printk("Finishing %ld sectors\n", SCpnt->request.nr_sectors));
-- Pete
next parent reply other threads:[~2002-01-28 23:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1012257244.13523.linux-kernel2news@redhat.com>
2002-01-28 23:17 ` Pete Zaitcev [this message]
2002-01-29 3:51 ` Encountered a Null Pointer Problem on the SCSI Layer David Ford
2002-01-29 17:22 ` Horst von Brand
2002-01-29 15:03 Peter Wong
[not found] <8A43C34093B3D5119F7D0004AC56F4BCC3448C@difpst1a.dif.dk>
2002-01-29 0:05 ` Pete Zaitcev
-- strict thread matches above, loose matches on Subject: below --
2002-01-28 22:30 Peter Wong
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=200201282317.g0SNHs326065@devserv.devel.redhat.com \
--to=zaitcev@redhat.com \
--cc=axboe@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=wpeter@us.ibm.com \
/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.