diff options
Diffstat (limited to 'mesalib/src/loader/loader.c')
-rw-r--r-- | mesalib/src/loader/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/loader/loader.c b/mesalib/src/loader/loader.c index 47e1f5874..bdd390691 100644 --- a/mesalib/src/loader/loader.c +++ b/mesalib/src/loader/loader.c @@ -402,7 +402,7 @@ int loader_get_user_preferred_fd(int default_fd, int *different_device) } fd = drm_open_device(device_name); - if (fd > 0) { + if (fd >= 0) { close(default_fd); } else { fd = default_fd; |