Messages in this thread | | | Date | Fri, 03 Oct 2014 19:01:20 +0100 | From | Bronek Kozicki <> | Subject | Re: [PATCH] drm: Test for PCI root bus to avoid NULL pointer dereference |
| |
On 27/08/2014 19:57, Alex Williamson wrote: > If we have a GPU on the PCI root bus that calls > drm_pcie_get_speed_cap_mask() we end up with a NULL pointer > dereference since pdev->bus->self is NULL. We already protect > against callers passing non-PCI devices, so let's also catch this > case and return -EINVAL. > > Root complex graphics are not terribly likely outside of IGD, but > when we assign a standard plugin GPU to a virtual machine, our > assumption that we have a parent device quickly becomes invalid.
What happend to this patch? I don't see it applied on https://github.com/torvalds/linux/tree/master/drivers/gpu/drm
B.
| |