diff options
-rw-r--r-- | drivers/gpu/arm/utgard/linux/mali_sync.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/arm/utgard/linux/mali_sync.c b/drivers/gpu/arm/utgard/linux/mali_sync.c index 68868ca5b6bd..dc1e3a2a4d73 100644 --- a/drivers/gpu/arm/utgard/linux/mali_sync.c +++ b/drivers/gpu/arm/utgard/linux/mali_sync.c @@ -18,6 +18,7 @@ #include <linux/file.h> #include <linux/seq_file.h> #include <linux/module.h> +#include <linux/fcntl.h> struct mali_sync_pt { struct sync_pt sync_pt; @@ -298,7 +299,7 @@ s32 mali_sync_fence_fd_alloc(struct sync_fence *sync_fence) { s32 fd = -1; - fd = get_unused_fd(); + fd = get_unused_fd_flags(O_CLOEXEC); if (fd < 0) { sync_fence_put(sync_fence); return -1; |