summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/mm_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index 9ab3ae88..9191cfe9 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -2594,7 +2594,7 @@ int gk20a_vm_map_buffer(struct gk20a_as_share *as_share,
2594 2594
2595 /* get ref to the mem handle (released on unmap_locked) */ 2595 /* get ref to the mem handle (released on unmap_locked) */
2596 dmabuf = dma_buf_get(dmabuf_fd); 2596 dmabuf = dma_buf_get(dmabuf_fd);
2597 if (!dmabuf) 2597 if (IS_ERR(dmabuf))
2598 return 0; 2598 return 0;
2599 2599
2600 err = gk20a_dmabuf_alloc_drvdata(dmabuf, dev_from_vm(vm)); 2600 err = gk20a_dmabuf_alloc_drvdata(dmabuf, dev_from_vm(vm));