[PATCH libdrm 2/2] xf86drm: Handle unrecognized subsystems safely in drmGetDevice[s]()

2015-10-20 Thread Emil Velikov
On 16 October 2015 at 23:31, Matt Roper wrote: > On Fri, Oct 16, 2015 at 11:27:10PM +0100, Emil Velikov wrote: >> On 16 October 2015 at 23:11, Matt Roper wrote: >> > Both drmGetDevice() and drmGetDevices() currently print a warning when >> > they encounter an unknown (non-PCI) subsystem type for

[PATCH libdrm 2/2] xf86drm: Handle unrecognized subsystems safely in drmGetDevice[s]()

2015-10-17 Thread Emil Velikov
On 16 October 2015 at 23:11, Matt Roper wrote: > Both drmGetDevice() and drmGetDevices() currently print a warning when > they encounter an unknown (non-PCI) subsystem type for a device node, > but they still proceed to assume that the drmDevicePtr was initialized > and try to add it to the local

[PATCH libdrm 2/2] xf86drm: Handle unrecognized subsystems safely in drmGetDevice[s]()

2015-10-16 Thread Alex Deucher
On Fri, Oct 16, 2015 at 6:11 PM, Matt Roper wrote: > Both drmGetDevice() and drmGetDevices() currently print a warning when > they encounter an unknown (non-PCI) subsystem type for a device node, > but they still proceed to assume that the drmDevicePtr was initialized > and try to add it to the

[PATCH libdrm 2/2] xf86drm: Handle unrecognized subsystems safely in drmGetDevice[s]()

2015-10-16 Thread Matt Roper
On Fri, Oct 16, 2015 at 11:27:10PM +0100, Emil Velikov wrote: > On 16 October 2015 at 23:11, Matt Roper wrote: > > Both drmGetDevice() and drmGetDevices() currently print a warning when > > they encounter an unknown (non-PCI) subsystem type for a device node, > > but they still proceed to assume

[PATCH libdrm 2/2] xf86drm: Handle unrecognized subsystems safely in drmGetDevice[s]()

2015-10-16 Thread Matt Roper
Both drmGetDevice() and drmGetDevices() currently print a warning when they encounter an unknown (non-PCI) subsystem type for a device node, but they still proceed to assume that the drmDevicePtr was initialized and try to add it to the local device array. Add a 'continue' to the error case