Skip to content

Commit

Permalink
[SCSI] NCR_D700: fix a NULL dereference
Browse files Browse the repository at this point in the history
The Coverity checker spotted this NULL dereference.

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 72df0eb commit 8800727
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/NCR_D700.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ NCR_D700_probe_one(struct NCR_D700_private *p, int siop, int irq,
return 0;

detect_failed:
release_region(host->base, 64);
release_region(region, 64);
region_failed:
kfree(hostdata);

Expand Down

0 comments on commit 8800727

Please sign in to comment.