[PATCH] drivers/message/i2o/pci.c: fix a NULL pointer dereference

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>
This commit is contained in:
Adrian Bunk 2005-11-27 00:37:05 +01:00 committed by Linus Torvalds
parent 42aacfba6c
commit 16a6317331

View file

@ -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);