[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>
This commit is contained in:
parent
a6becb084d
commit
a1d4f73a00
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user