aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Velikov2017-07-20 06:25:27 -0500
committerEmil Velikov2017-07-20 06:25:27 -0500
commit3876bc246a07070a6043159cd7623d4def9bbd4c (patch)
tree6eee3879e5ebdefe147901f100f9d53a6f716c37 /xf86drm.c
parent5226b52773e0a9972cd1e0dade55cb9ae869941c (diff)
downloadexternal-libdrm-3876bc246a07070a6043159cd7623d4def9bbd4c.tar.gz
external-libdrm-3876bc246a07070a6043159cd7623d4def9bbd4c.tar.xz
external-libdrm-3876bc246a07070a6043159cd7623d4def9bbd4c.zip
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>
Diffstat (limited to 'xf86drm.c')
-rw-r--r--xf86drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xf86drm.c b/xf86drm.c
index f306c9b7..6ea01129 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -3989,7 +3989,7 @@ int drmGetDevices2(uint32_t flags, drmDevicePtr devices[], int max_devices)
3989 ret = drmProcessUsbDevice(&device, node, node_type, maj, min, 3989 ret = drmProcessUsbDevice(&device, node, node_type, maj, min,
3990 devices != NULL, flags); 3990 devices != NULL, flags);
3991 if (ret) 3991 if (ret)
3992 goto free_devices; 3992 continue;
3993 3993
3994 break; 3994 break;
3995 3995