Skip to content

Commit

Permalink
[SCSI] dmx3191d: 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 8800727 commit c3c026b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/dmx3191d.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static int __devinit dmx3191d_probe_one(struct pci_dev *pdev,
out_free_irq:
free_irq(shost->irq, shost);
out_release_region:
release_region(shost->io_port, DMX3191D_REGION_LEN);
release_region(io, DMX3191D_REGION_LEN);
out_disable_device:
pci_disable_device(pdev);
out:
Expand Down

0 comments on commit c3c026b

Please sign in to comment.