Skip to content

Commit

Permalink
[SCSI] sim710: fix a NULL pointer dereference
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and James Bottomley committed Mar 12, 2006
1 parent a6becb0 commit a1d4f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/sim710.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a1d4f73

Please sign in to comment.