From 3876bc246a07070a6043159cd7623d4def9bbd4c Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 20 Jul 2017 12:25:27 +0100 Subject: 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 --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ret = drmProcessUsbDevice(&device, node, node_type, maj, min, devices != NULL, flags); if (ret) - goto free_devices; + continue; break; -- cgit v1.2.3