This code incorrectly worked by falling through to /proc/dri method.
Now that /proc/dri is removed, drmOpenByName() fails even when udev
identification succeeds.

Signed-off-by: Jay Cornwall <j...@jcornwall.me>
---
 xf86drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xf86drm.c b/xf86drm.c
index 4791a05..1b156e5 100644
--- a/xf86drm.c
+++ b/xf86drm.c
@@ -565,9 +565,9 @@ static int drmOpenByName(const char *name)
                    if (!id || !*id) {
                        if (id)
                            drmFreeBusid(id);
-                       return fd;
                    } else {
                        drmFreeBusid(id);
+                       return fd;
                    }
                } else {
                    drmFreeVersion(version);
-- 
1.8.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to