]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] drivers/message/i2o/pci.c: fix a NULL pointer dereference
authorAdrian Bunk <bunk@stusta.de>
Sat, 26 Nov 2005 23:37:05 +0000 (00:37 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 28 Nov 2005 04:22:32 +0000 (20:22 -0800)
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>
drivers/message/i2o/pci.c

index 66c03e8825703a408b21c239ff5e4781fab71ffc..81ef306cb1247c40ac2dbb6d1458f71f7b36453c 100644 (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);