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>
This commit is contained in:
parent
5a0202f758
commit
55b19fc75f
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue