diff options
author | David Daney <david.daney@cavium.com> | 2011-08-16 22:24:37 +0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2011-08-19 19:51:37 +0400 |
commit | 69566dd8be42dea7a22f625abc96e65bb4b45d1f (patch) | |
tree | 48e73a52bd8b79b5b8674243b54b5f2e346e5b9b /include/linux | |
parent | debc3b778508f59696ff188f0feca271dcbfa7d9 (diff) | |
download | linux-69566dd8be42dea7a22f625abc96e65bb4b45d1f.tar.xz |
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>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions