diff options
author | Hemant Hariyani <hemanthariyani@ti.com> | 2014-12-04 00:27:35 -0600 |
---|---|---|
committer | Daniel Thompson <daniel.thompson@linaro.org> | 2015-10-26 14:26:30 +0000 |
commit | 83301c8873b0dc6cb9221595ff8d31a68b681e30 (patch) | |
tree | ce4880c70f69c497b4e28acad1a666bc63dfd1c7 | |
parent | 86023f35583f12e190a39e3fa885df4c97764492 (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.c | 2 |
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; |