diff options
author | Emil Velikov <[email protected]> | 2015-10-14 15:37:03 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-11-21 12:52:21 +0000 |
commit | f8a1665542d2bee829ab0c1bbde533f32d983e96 (patch) | |
tree | 6c59d925358842ece72a556bcf21c825de1ad7d0 | |
parent | e43a771dfa5b99899a4a09cdd2989afc25eef17c (diff) |
auxiliary/vl: Don't close the drm fd on failure
Ported from an identically named commit in st/xa
commit 35cf3831d71770211f29da6608313dc1f6213d7b
Author: Thomas Hellstrom <[email protected]>
Date: Thu Jul 3 02:07:36 2014 -0700
st/xa: Don't close the drm fd on failure v2
Signed-off-by: Emil Velikov <[email protected]>
Acked-by: Rob Clark <[email protected]>
-rw-r--r-- | src/gallium/auxiliary/vl/vl_winsys_dri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri.c b/src/gallium/auxiliary/vl/vl_winsys_dri.c index c4f9295271f..ae0d4cdee1b 100644 --- a/src/gallium/auxiliary/vl/vl_winsys_dri.c +++ b/src/gallium/auxiliary/vl/vl_winsys_dri.c @@ -402,7 +402,7 @@ vl_dri2_screen_create(Display *display, int screen) if (authenticate == NULL || !authenticate->authenticated) goto free_authenticate; - if (pipe_loader_drm_probe_fd(&scrn->base.dev, fd)) + if (pipe_loader_drm_probe_fd(&scrn->base.dev, dup(fd))) scrn->base.pscreen = pipe_loader_create_screen(scrn->base.dev); if (!scrn->base.pscreen) |