From: Alex Williamson Date: Wed, 27 Aug 2014 19:01:35 +0000 (-0600) Subject: radeon: Test for PCI root bus before assuming bus->self X-Git-Tag: omap-fixes-against-v3.17-rc3~38^2~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bd252de78d406485c896508c13a8f7a78ee8353;p=pandora-kernel.git radeon: Test for PCI root bus before assuming bus->self If we assign a Radeon device to a virtual machine, we can no longer assume a fixed hardware topology, like the GPU having a parent device. This patch simply adds a few pci_is_root_bus() tests to avoid passing a NULL pointer to PCI access functions, allowing the radeon driver to work in a QEMU 440FX machine with an assigned HD8570 on the emulated PCI root bus. Signed-off-by: Alex Williamson Signed-off-by: Alex Deucher --- Reading git-diff-tree failed