From: David Daney Date: Tue, 16 Aug 2011 18:24:37 +0000 (-0700) Subject: PCI: OF: Don't crash when bridge parent is NULL. X-Git-Tag: v3.1-rc3~10^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69566dd8be42dea7a22f625abc96e65bb4b45d1f;p=pandora-kernel.git 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 Acked-by: Benjamin Herrenschmidt Acked-by: Grant Likely Signed-off-by: Jesse Barnes --- Reading git-diff-tree failed