summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index d26855f4..c9f2a840 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -27,6 +27,7 @@
27#include <linux/vmalloc.h> 27#include <linux/vmalloc.h>
28#include <linux/dma-buf.h> 28#include <linux/dma-buf.h>
29#include <linux/lcm.h> 29#include <linux/lcm.h>
30#include <linux/fdtable.h>
30#include <uapi/linux/nvgpu.h> 31#include <uapi/linux/nvgpu.h>
31#include <trace/events/gk20a.h> 32#include <trace/events/gk20a.h>
32#include <gk20a/page_allocator_priv.h> 33#include <gk20a/page_allocator_priv.h>
@@ -2161,7 +2162,7 @@ int gk20a_vidmem_buf_alloc(struct gk20a *g, size_t bytes)
2161 goto err_bfree; 2162 goto err_bfree;
2162 } 2163 }
2163 2164
2164 fd = get_unused_fd_flags(O_RDWR); 2165 fd = __alloc_fd(current->files, 1024, sysctl_nr_open, O_RDWR);
2165 if (fd < 0) { 2166 if (fd < 0) {
2166 /* ->release frees what we have done */ 2167 /* ->release frees what we have done */
2167 dma_buf_put(buf->dmabuf); 2168 dma_buf_put(buf->dmabuf);