Skip to content

Commit

Permalink
drm/exynos: fix imported dma-buf to be mapped
Browse files Browse the repository at this point in the history
The imported dma-buf should be mapped by sub-system exporting it.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
  • Loading branch information
Joonyoung Shim authored and Inki Dae committed May 10, 2016
1 parent 5a0202f commit 55b19fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/exynos/exynos_drm_gem.c
Original file line number Diff line number Diff line change
@@ -547,6 +547,9 @@ int exynos_drm_gem_mmap(struct file *filp, struct vm_area_struct *vma)

obj = vma->vm_private_data;

if (obj->import_attach)
return dma_buf_mmap(obj->dma_buf, vma, 0);

return exynos_drm_gem_mmap_obj(obj, vma);
}

0 comments on commit 55b19fc

Please sign in to comment.