* [PATCH] inia100.c: pointer used before being set
@ 2004-01-13 5:07 Randy.Dunlap
2004-01-13 5:17 ` James Bottomley
0 siblings, 1 reply; 4+ messages in thread
From: Randy.Dunlap @ 2004-01-13 5:07 UTC (permalink / raw)
To: linux-scsi; +Cc: jejb
drivers/scsi/inia100.c:421: warning: `pHCB' might be used uninitialized in this function
I see a problem there, patch is below. Warning is still there, however,
so this doesn't fix the warning, just fixes a real bug.
changelog: use local <port> since pHCB is not set yet;
product_versions: Linux 2.6.1
Please apply.
diffstat:=
diff -Naurp ./drivers/scsi/inia100.c~inia_warn ./drivers/scsi/inia100.c
--- ./drivers/scsi/inia100.c~inia_warn 2004-01-08 22:59:19.000000000 -0800
+++ ./drivers/scsi/inia100.c 2004-01-12 21:01:49.000000000 -0800
@@ -434,9 +434,9 @@ static int __devinit inia100_probe_one(s
}
port = pci_resource_start(pdev, 0);
- if (!request_region(pHCB->HCS_Base, 256, "inia100")) {
+ if (!request_region(port, 256, "inia100")) {
printk(KERN_WARNING "inia100: io port 0x%x, is busy.\n",
- pHCB->HCS_Base);
+ port);
goto out_disable_device; /* XXX: undo init_orchid() ?? */
}
--
~Randy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] inia100.c: pointer used before being set
2004-01-13 5:07 [PATCH] inia100.c: pointer used before being set Randy.Dunlap
@ 2004-01-13 5:17 ` James Bottomley
2004-01-13 5:30 ` Randy.Dunlap
0 siblings, 1 reply; 4+ messages in thread
From: James Bottomley @ 2004-01-13 5:17 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: SCSI Mailing List
On Tue, 2004-01-13 at 00:07, Randy.Dunlap wrote:
> drivers/scsi/inia100.c:421: warning: `pHCB' might be used uninitialized in this function
I think I've got a different (and slightly more extensive) fix already
in the scsi-misc-2.7 tree:
ChangeSet@1.1474.69.1, 2004-01-05 22:03:53-06:00, hch@lst.de
[PATCH] fix inia100 driver
John W Fort helped me debugging the brown paperbag bugs, the patch
below
makes it work.
James
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] inia100.c: pointer used before being set
2004-01-13 5:17 ` James Bottomley
@ 2004-01-13 5:30 ` Randy.Dunlap
2004-01-13 15:07 ` James Bottomley
0 siblings, 1 reply; 4+ messages in thread
From: Randy.Dunlap @ 2004-01-13 5:30 UTC (permalink / raw)
To: James Bottomley; +Cc: linux-scsi
On 13 Jan 2004 00:17:07 -0500 James Bottomley <James.Bottomley@SteelEye.com> wrote:
| On Tue, 2004-01-13 at 00:07, Randy.Dunlap wrote:
| > drivers/scsi/inia100.c:421: warning: `pHCB' might be used uninitialized in this function
|
| I think I've got a different (and slightly more extensive) fix already
| in the scsi-misc-2.7 tree:
|
| ChangeSet@1.1474.69.1, 2004-01-05 22:03:53-06:00, hch@lst.de
| [PATCH] fix inia100 driver
|
| John W Fort helped me debugging the brown paperbag bugs, the patch
| below
| makes it work.
OK, I looked for scsi-patch trees and just didn't look in one
named with "2.7" in it since I think that this should be fixed
before then.
--
~Randy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] inia100.c: pointer used before being set
2004-01-13 5:30 ` Randy.Dunlap
@ 2004-01-13 15:07 ` James Bottomley
0 siblings, 0 replies; 4+ messages in thread
From: James Bottomley @ 2004-01-13 15:07 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: SCSI Mailing List
On Tue, 2004-01-13 at 00:30, Randy.Dunlap wrote:
> OK, I looked for scsi-patch trees and just didn't look in one
> named with "2.7" in it since I think that this should be fixed
> before then.
Yes, sorry, bad tree name...I picked it when I wasn't sure if I'd get
any of the driver patches in after 2.6.0....I'll rename it in the next
go around.
James
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-01-13 15:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-13 5:07 [PATCH] inia100.c: pointer used before being set Randy.Dunlap
2004-01-13 5:17 ` James Bottomley
2004-01-13 5:30 ` Randy.Dunlap
2004-01-13 15:07 ` James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).