From: Adrian Bunk Date: Fri, 10 Mar 2006 22:24:08 +0000 (+0100) Subject: [SCSI] NCR_D700: fix a NULL dereference X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8800727ae8a20146981a9531ac833cb889666247;p=linux-beck.git [SCSI] NCR_D700: fix a NULL dereference The Coverity checker spotted this NULL dereference. Signed-off-by: Adrian Bunk Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/NCR_D700.c b/drivers/scsi/NCR_D700.c index e993a7ba276f..577e63499778 100644 --- a/drivers/scsi/NCR_D700.c +++ b/drivers/scsi/NCR_D700.c @@ -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);