aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-03-10 17:25:00 -0500
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-03-12 10:46:23 -0500
commita1d4f73a00958162f91311396d37080f5e9b9ef1 (patch)
treec1b2570133719635883fa73b83a020181ecfafef /drivers/scsi
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')
-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 9171788348c4..3274ab76c8d3 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,
146 out_put_host: 146 out_put_host:
147 scsi_host_put(host); 147 scsi_host_put(host);
148 out_release: 148 out_release:
149 release_region(host->base, 64); 149 release_region(base_addr, 64);
150 out_free: 150 out_free:
151 kfree(hostdata); 151 kfree(hostdata);
152 out: 152 out: