]> err.no Git - linux-2.6/commitdiff
[SCSI] NCR_D700: fix a NULL dereference
authorAdrian Bunk <bunk@stusta.de>
Fri, 10 Mar 2006 22:24:08 +0000 (23:24 +0100)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 12 Mar 2006 15:45:43 +0000 (09:45 -0600)
The Coverity checker spotted this NULL dereference.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/NCR_D700.c

index e993a7ba276f79992985b29770e2706d16d15c10..577e6349977884dcad39f69d51cc1e9399b3f798 100644 (file)
@@ -218,7 +218,7 @@ NCR_D700_probe_one(struct NCR_D700_private *p, int siop, int irq,
        return 0;
 
  detect_failed:
-       release_region(host->base, 64);
+       release_region(region, 64);
  region_failed:
        kfree(hostdata);