Commit a1d4f73a authored by Adrian Bunk's avatar Adrian Bunk Committed by James Bottomley

[SCSI] sim710: fix a NULL pointer dereference

This patch fixes a NULL pointer dereference spotted by the Coverity
checker.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent a6becb08
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment