diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2017-07-20 12:25:27 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2017-07-20 12:25:27 +0100 |
commit | 3876bc246a07070a6043159cd7623d4def9bbd4c (patch) | |
tree | 6eee3879e5ebdefe147901f100f9d53a6f716c37 | |
parent | 5226b52773e0a9972cd1e0dade55cb9ae869941c (diff) |
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: f8484ccbd12 ("xf86drm: Add USB support")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r-- | xf86drm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |