Skip to content

Commit

Permalink
[PATCH] drivers/message/i2o/pci.c: fix a NULL pointer dereference
Browse files Browse the repository at this point in the history
The Coverity checker spotted this obvious NULL pointer dereference.

Signed-off-by: Adrian Bunk <[email protected]>
Acked-by: Markus Lidel <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
AdrianBunk authored and Linus Torvalds committed Nov 28, 2005
1 parent 42aacfb commit 16a6317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/message/i2o/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ static int __devinit i2o_pci_probe(struct pci_dev *pdev,
i2o_pci_free(c);

free_controller:
i2o_iop_free(c);
put_device(c->device.parent);
i2o_iop_free(c);

disable:
pci_disable_device(pdev);
Expand Down

0 comments on commit 16a6317

Please sign in to comment.