diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-03-10 17:25:00 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-12 10:46:23 -0500 |
commit | a1d4f73a00958162f91311396d37080f5e9b9ef1 (patch) | |
tree | c1b2570133719635883fa73b83a020181ecfafef /drivers/scsi/sim710.c | |
parent | a6becb084d4beb0b0c83651541f5b53f6da01e36 (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.c | 2 |
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: |