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

2014-10-03 Thread Bronek Kozicki
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

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

2014-08-27 Thread Alex Deucher
On Wed, Aug 27, 2014 at 2:57 PM, 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 th

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

2014-08-27 Thread Alex Williamson
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 terrib