summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInki Dae <inki.dae@samsung.com>2013-07-17 15:29:38 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:27 +0900
commit93e582afb066942fee788140517fef20602cc74d (patch)
tree53a1d329c04685585214ccf0219bec274c62f0fb
parent82741c3a6cd13c00b78ba2d9282e6cc000b60b8a (diff)
downloadlinux-3.10-93e582afb066942fee788140517fef20602cc74d.tar.gz
linux-3.10-93e582afb066942fee788140517fef20602cc74d.tar.bz2
linux-3.10-93e582afb066942fee788140517fef20602cc74d.zip
drm/exynos: export a gem into dmabuf fd with O_RDWR
user process needs read/write permissions when the user process tires buffer lock with a exported dmabuf fd through fcntl system call. Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_dmabuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
index ff7f2a886a3..f26861e4c7e 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_dmabuf.c
@@ -205,6 +205,8 @@ struct dma_buf *exynos_dmabuf_prime_export(struct drm_device *drm_dev,
{
struct exynos_drm_gem_obj *exynos_gem_obj = to_exynos_gem_obj(obj);
+ flags |= O_RDWR;
+
return dma_buf_export(exynos_gem_obj, &exynos_dmabuf_ops,
exynos_gem_obj->base.size, flags);
}