[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>
diff --git a/drivers/scsi/sim710.c b/drivers/scsi/sim710.c
index 9171788..3274ab7 100644
--- a/drivers/scsi/sim710.c
+++ b/drivers/scsi/sim710.c
@@ -146,7 +146,7 @@
out_put_host:
scsi_host_put(host);
out_release:
- release_region(host->base, 64);
+ release_region(base_addr, 64);
out_free:
kfree(hostdata);
out: