Re: [PATCH] drm: Test for PCI root bus to avoid NULL pointer dereference

From: Bronek Kozicki
Date: Fri Oct 03 2014 - 15:00:58 EST


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.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/