summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2015-06-29 14:01:39 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2015-07-13 19:57:54 +0100
commitcc32d25454c382a971e81ae584a4296fdf492e70 (patch)
treea8f24bcbcf7ea53de5a9ce38fdc173a137a95624
parent132031b110a9fd652f3c9d5727502134ef9c22c1 (diff)
pipe-loader: use loader_open_device() rather than open()
The former handles O_CLOEXEC (and the lack of it) appropriately. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net>
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
index 05f7c57c90..cc6d74a964 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
@@ -95,7 +95,7 @@ open_drm_render_node_minor(int minor)
char path[PATH_MAX];
snprintf(path, sizeof(path), DRM_RENDER_NODE_DEV_NAME_FORMAT, DRM_DIR_NAME,
minor);
- return open(path, O_RDWR, 0);
+ return loader_open_device(path);
}
int