From a1d4f73a00958162f91311396d37080f5e9b9ef1 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Fri, 10 Mar 2006 23:25:00 +0100 Subject: [SCSI] sim710: fix a NULL pointer dereference This patch fixes a NULL pointer dereference spotted by the Coverity checker. Signed-off-by: Adrian Bunk Signed-off-by: James Bottomley --- drivers/scsi/sim710.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/scsi') 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: -- cgit v1.2.3