diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-03-10 23:25:00 +0100 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-03-12 16:46:23 +0100 |
commit | a1d4f73a00958162f91311396d37080f5e9b9ef1 (patch) | |
tree | c1b2570133719635883fa73b83a020181ecfafef /drivers/scsi/sim710.c | |
parent | [SCSI] ibmmca: fix a NULL pointer dereference (diff) | |
download | linux-a1d4f73a00958162f91311396d37080f5e9b9ef1.tar.xz linux-a1d4f73a00958162f91311396d37080f5e9b9ef1.zip |
[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, out_put_host: scsi_host_put(host); out_release: - release_region(host->base, 64); + release_region(base_addr, 64); out_free: kfree(hostdata); out: |