[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:
Adrian Bunk 2006-03-10 23:25:00 +01:00 committed by James Bottomley
parent a6becb084d
commit a1d4f73a00
1 changed files with 1 additions and 1 deletions

View File

@ -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: