From: Adrian Bunk Date: Fri, 10 Mar 2006 22:25:00 +0000 (+0100) Subject: [SCSI] sim710: fix a NULL pointer dereference X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a1d4f73a00958162f91311396d37080f5e9b9ef1;p=linux-beck.git [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 --- 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: