public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [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

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