diff options
| author | Alex Williamson <[email protected]> | 2015-09-18 21:08:54 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2015-09-24 22:06:32 +0000 |
| commit | 38ea72bdb65df2f40ec77b2c9d1413e7f5e34465 (patch) | |
| tree | 9356d810f4575ff20e2615043de2005439202845 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | PCI: Clear IORESOURCE_UNSET when clipping a bridge window (diff) | |
| download | kernel-38ea72bdb65df2f40ec77b2c9d1413e7f5e34465.tar.gz kernel-38ea72bdb65df2f40ec77b2c9d1413e7f5e34465.zip | |
PCI/MSI: Fix MSI IRQ domains for VFs on virtual buses
SR-IOV creates a virtual bus where bus->self is NULL. When we add VFs and
scan for an MSI domain, pci_set_bus_msi_domain() dereferences bus->self,
which causes a kernel NULL pointer dereference oops.
Scan up to the parent bus until we find a real bridge where we can get the
MSI domain.
[bhelgaas: changelog]
Fixes: 44aa0c657e3e ("PCI/MSI: Add hooks to populate the msi_domain field")
Tested-by: Joerg Roedel <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
