From: Andrew Morton <akpm@linux-foundation.org>
To: linux-scsi@vger.kernel.org
Cc: "bugme-daemon@kernel-bugs.osdl.org"
<bugme-daemon@bugzilla.kernel.org>,
shanlu@cs.uiuc.edu
Subject: Re: [Bugme-new] [Bug 8122] New: Scsi_Host's n_io_port forgot to be initialized?
Date: Mon, 5 Mar 2007 19:17:30 -0800 [thread overview]
Message-ID: <20070305191730.8f695adf.akpm@linux-foundation.org> (raw)
In-Reply-To: <200703040919.l249JWSs008220@fire-2.osdl.org>
On Sun, 4 Mar 2007 01:19:32 -0800 bugme-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=8122
>
> Summary: Scsi_Host's n_io_port forgot to be initialized?
> Kernel Version: Linux 2.6.20
> Status: NEW
> Severity: normal
> Owner: scsi_drivers-other@kernel-bugs.osdl.org
> Submitter: shanlu@cs.uiuc.edu
>
>
> Most recent kernel where this bug did *NOT* occur: No
> Distribution: Linux-2.6.20
> Problem Description:
> It seems that usually structure Scsi_Host's io_port field and n_io_port field
> needs to be set together.
> However, in file drivers/scsi/dmx3191d.c,
> function dmx3191d_probe_one
> 71 static int __devinit dmx3191d_probe_one(struct pci_dev *pdev,
> 72 const struct pci_device_id *id)
> ...
> 88 shost = scsi_host_alloc(&dmx3191d_driver_template,
> 89 sizeof(struct NCR5380_hostdata));
> 90 if (!shost)
> 91 goto out_release_region;
> 92 shost->io_port = io;
> 93 shost->irq = pdev->irq;
> ...
> 109 error = scsi_add_host(shost, &pdev->dev);
>
> only io_port is set and n_io_port is uninitialized. Won't this cause some
> problem? I fear when some code tries to calculate the io_port region (from
> io_port to io_port+n_io_port-1 is regarded as the port region), there would be
> problem.
>
> It seems that in all other similar scsi device's similar functions, like
> dc390_probe_one and inia100_probe_one, io_port and n_io_port are both set. This
> makes me think above dmx3191d.c's missing n_io_port at least a potential danger.
>
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
next parent reply other threads:[~2007-03-06 3:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200703040919.l249JWSs008220@fire-2.osdl.org>
2007-03-06 3:17 ` Andrew Morton [this message]
2007-03-06 7:31 ` [Bugme-new] [Bug 8122] New: Scsi_Host's n_io_port forgot to be initialized? Christoph Hellwig
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=20070305191730.8f695adf.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=bugme-daemon@bugzilla.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=shanlu@cs.uiuc.edu \
/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