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 <bunk@stusta.de>
Acked-by: Markus Lidel <Markus.Lidel@shadowconnect.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Adrian Bunk 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.