[SCSI] NCR_D700: fix a NULL dereference

The Coverity checker spotted this NULL dereference.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
This commit is contained in:
Adrian Bunk 2006-03-10 23:24:08 +01:00 committed by James Bottomley
parent 72df0ebf95
commit 8800727ae8
1 changed files with 1 additions and 1 deletions

View 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);