提交 a1d4f73a 编写于 作者: A Adrian Bunk 提交者: James Bottomley

[SCSI] sim710: fix a NULL pointer dereference

This patch fixes a NULL pointer dereference spotted by the Coverity
checker.
Signed-off-by: NAdrian Bunk <bunk@stusta.de>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 a6becb08
...@@ -146,7 +146,7 @@ sim710_probe_common(struct device *dev, unsigned long base_addr, ...@@ -146,7 +146,7 @@ sim710_probe_common(struct device *dev, unsigned long base_addr,
out_put_host: out_put_host:
scsi_host_put(host); scsi_host_put(host);
out_release: out_release:
release_region(host->base, 64); release_region(base_addr, 64);
out_free: out_free:
kfree(hostdata); kfree(hostdata);
out: out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册