aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHemant Hariyani2014-12-04 00:27:35 -0600
committerHemant Hariyani2014-12-04 00:32:53 -0600
commitaeaa7d3d78fc0784bc55fc8e1e5dd07bdb6f1fa4 (patch)
tree5729b82fa4144c2bcbe558c8167d9cb17f443810
parentb3ac4b3a8a10732a6360c8d9b896cbfc54ccf927 (diff)
downloadlibdrm-aeaa7d3d78fc0784bc55fc8e1e5dd07bdb6f1fa4.tar.gz
libdrm-aeaa7d3d78fc0784bc55fc8e1e5dd07bdb6f1fa4.tar.xz
libdrm-aeaa7d3d78fc0784bc55fc8e1e5dd07bdb6f1fa4.zip
omap: Add DRM_RDWR flag to dmabuf export
Allows mmap on dmabuf fd with MAP_SHARED and PROT_WRITE. Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
-rw-r--r--omap/omap_drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/omap/omap_drm.c b/omap/omap_drm.c
index 83c365a1..08bf1269 100644
--- a/omap/omap_drm.c
+++ b/omap/omap_drm.c
@@ -416,7 +416,7 @@ int omap_bo_dmabuf(struct omap_bo *bo)
416 if (!bo->fd) { 416 if (!bo->fd) {
417 struct drm_prime_handle req = { 417 struct drm_prime_handle req = {
418 .handle = bo->handle, 418 .handle = bo->handle,
419 .flags = DRM_CLOEXEC, 419 .flags = DRM_CLOEXEC | DRM_RDWR,
420 }; 420 };
421 int ret; 421 int ret;
422 422