powerpc/iseries: Fix possible null pointer dereference in iSeries_pcibios_fixup_resources
authorDenis Kirjanov <dkirjanov@hera.kernel.org>
Wed, 16 Jun 2010 05:16:59 +0000 (05:16 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Jul 2010 08:11:43 +0000 (18:11 +1000)
commitd3005fbc696781d2fd7bd5b5389a94fae5332b58
tree1369363ca618ead993a57e2dd5aa5e67bc7bf251
parent33ad5e4b6cab3ad8cf3afda49b66393f1833150e
powerpc/iseries: Fix possible null pointer dereference in iSeries_pcibios_fixup_resources

I don't know if this is a right fix for the problem
since of_get_property can return NULL.
Since iseries_device_information is used only for informational purpose,
we can skip this function without valid HvSubBusNumber number.

Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/iseries/pci.c