xf86drm: continue with next device if drmProcessUsbDevice fails

Analogous to previous commit (and the rest of the codebase), simply
discard the device if we cannot parse it.

Fixes: f8484ccbd1 ("xf86drm: Add USB support")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
main
Emil Velikov 2017-07-20 12:25:27 +01:00 committed by Emil Velikov
parent 5226b52773
commit 3876bc246a
1 changed files with 1 additions and 1 deletions

View File

@ -3989,7 +3989,7 @@ int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], int max_devices)
ret = drmProcessUsbDevice(&device, node, node_type, maj, min,
devices != NULL, flags);
if (ret)
goto free_devices;
continue;
break;