diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2016-04-22 16:30:48 +0900 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2016-05-10 23:11:43 +0900 |
commit | 55b19fc75ff325c17d71236866a0cd17152a355c (patch) | |
tree | b35148d53949d77b946d5d8ba12555926f740d58 /drivers | |
parent | 5a0202f75803e9c366e5355de03a60d09c5d76d0 (diff) |
drm/exynos: fix imported dma-buf to be mapped
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index 9f688c28fa8e..6c83884f1fe6 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -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); } |