From: Joonyoung Shim Date: Fri, 22 Apr 2016 07:30:48 +0000 (+0900) Subject: drm/exynos: fix imported dma-buf to be mapped X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=55b19fc75ff325c17d71236866a0cd17152a355c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Inki Dae --- 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); }