aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Hariyani <hemanthariyani@ti.com>2014-12-04 00:27:35 -0600
committerDaniel Thompson <daniel.thompson@linaro.org>2015-10-26 14:26:30 +0000
commit83301c8873b0dc6cb9221595ff8d31a68b681e30 (patch)
treece4880c70f69c497b4e28acad1a666bc63dfd1c7
parent86023f35583f12e190a39e3fa885df4c97764492 (diff)
omap: Add DRM_RDWR flag to dmabuf exporthacking/pse28-rebase
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 2aa696ff..04531207 100644
--- a/omap/omap_drm.c
+++ b/omap/omap_drm.c
@@ -421,7 +421,7 @@ int omap_bo_dmabuf(struct omap_bo *bo)
if (bo->fd < 0) {
struct drm_prime_handle req = {
.handle = bo->handle,
- .flags = DRM_CLOEXEC,
+ .flags = DRM_CLOEXEC | DRM_RDWR,
};
int ret;