aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/sim710.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-03-10 23:25:00 +0100
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-12 09:46:23 -0600
commita1d4f73a00958162f91311396d37080f5e9b9ef1 (patch)
treec1b2570133719635883fa73b83a020181ecfafef /drivers/scsi/sim710.c
parenta6becb084d4beb0b0c83651541f5b53f6da01e36 (diff)
[SCSI] sim710: fix a NULL pointer dereference
This patch fixes a NULL pointer dereference spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/sim710.c')
-rw-r--r--drivers/scsi/sim710.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sim710.c b/drivers/scsi/sim710.c
index 9171788348c..3274ab76c8d 100644
--- a/drivers/scsi/sim710.c
+++ b/drivers/scsi/sim710.c
@@ -146,7 +146,7 @@ sim710_probe_common(struct device *dev, unsigned long base_addr,
out_put_host:
scsi_host_put(host);
out_release:
- release_region(host->base, 64);
+ release_region(base_addr, 64);
out_free:
kfree(hostdata);
out: