diff options
author | Hemant Hariyani | 2014-12-04 00:27:35 -0600 |
---|---|---|
committer | Andrew F. Davis | 2018-02-28 12:44:57 -0600 |
commit | 1f502c0af2bd61104bd10cda02b1cf9cb21e27e8 (patch) | |
tree | d5218b2a126ff131ecbea432d3e0f65cf48446e0 | |
parent | 25110507668b72c23ac3580604acd63c24afce08 (diff) | |
download | external-libdrm-temp/dev/for-Praneeth.tar.gz external-libdrm-temp/dev/for-Praneeth.tar.xz external-libdrm-temp/dev/for-Praneeth.zip |
omap: Add DRM_RDWR flag to dmabuf exporttemp/dev/for-Praneeth
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 08ba64eb..a954bd94 100644 --- a/omap/omap_drm.c +++ b/omap/omap_drm.c | |||
@@ -418,7 +418,7 @@ int omap_bo_dmabuf(struct omap_bo *bo) | |||
418 | if (bo->fd < 0) { | 418 | if (bo->fd < 0) { |
419 | struct drm_prime_handle req = { | 419 | struct drm_prime_handle req = { |
420 | .handle = bo->handle, | 420 | .handle = bo->handle, |
421 | .flags = DRM_CLOEXEC, | 421 | .flags = DRM_CLOEXEC | DRM_RDWR, |
422 | }; | 422 | }; |
423 | int ret; | 423 | int ret; |
424 | 424 | ||