David Daney 69566dd8be PCI: OF: Don't crash when bridge parent is NULL.
In pcibios_get_phb_of_node(), we will crash while booting if
bus->bridge->parent is NULL.

Check for this case and avoid dereferencing the NULL pointer.

Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
2011-08-19 08:51:37 -07:00
..
2011-05-10 15:43:36 -07:00
2011-03-29 14:48:19 +02:00
2011-05-29 02:21:08 -04:00
2010-07-30 09:47:22 -07:00
2011-08-01 11:50:50 -07:00
2010-08-31 15:28:00 -07:00
2009-07-12 12:22:34 -07:00
2011-07-26 16:49:47 -07:00