PCI: ibmphp_pci.c: fix NULL dereference
authorAdrian Bunk <bunk@stusta.de>
Fri, 17 Nov 2006 01:19:25 +0000 (02:19 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Dec 2006 22:37:00 +0000 (14:37 -0800)
commitb0d974e90d6f9fbf3a926defbbc76543cff74426
tree02311da0df99efe54718c8a54727980629569161
parent9d167dc367f22c07285137370816b83b4be9c697
PCI: ibmphp_pci.c: fix NULL dereference

The correct order is: NULL check before dereference

Spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/ibmphp_pci.c