projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00defe2
)
iris: replace all dup() with os_dupfd_cloexec()
author
Eric Engestrom
<eric@engestrom.ch>
Fri, 5 Jun 2020 08:54:51 +0000
(10:54 +0200)
committer
Marge Bot
<eric+marge@anholt.net>
Thu, 18 Jun 2020 02:09:56 +0000
(
02:09
+0000)
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5369>
src/gallium/drivers/iris/iris_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_bufmgr.c
b/src/gallium/drivers/iris/iris_bufmgr.c
index 5529d3767dac3145fd4aa27dceb804de9289ba21..e6b5c9763b5110b7a2f8d5c13ae6da8fcf5a2983 100644
(file)
--- a/
src/gallium/drivers/iris/iris_bufmgr.c
+++ b/
src/gallium/drivers/iris/iris_bufmgr.c
@@
-1801,7
+1801,7
@@
iris_bufmgr_create(struct gen_device_info *devinfo, int fd, bool bo_reuse)
* Don't do this! Ensure that each library/bufmgr has its own device
* fd so that its namespace does not clash with another.
*/
- bufmgr->fd =
dup
(fd);
+ bufmgr->fd =
os_dupfd_cloexec
(fd);
p_atomic_set(&bufmgr->refcount, 1);