summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHemant Hariyani2014-12-04 00:27:35 -0600
committerPraneeth Bajjuri2018-06-05 06:51:08 -0500
commitad03011fcb85e6f6636630a72566ca7a35bd49a7 (patch)
tree072507360110a137f019778dfb67ce56759bbd94
parent755140590075bb8509b35ecb1d0a0f9f28761ddb (diff)
downloadexternal-libdrm-ad03011fcb85e6f6636630a72566ca7a35bd49a7.tar.gz
external-libdrm-ad03011fcb85e6f6636630a72566ca7a35bd49a7.tar.xz
external-libdrm-ad03011fcb85e6f6636630a72566ca7a35bd49a7.zip
Allows mmap on dmabuf fd with MAP_SHARED and PROT_WRITE. This fixes boot failures caused due to mmap() returning error Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com> [picked and updated commitmsg from http://git.ti.com/cgit/cgit.cgi/android/external-libdrm.git/] Bug: 74437007 Change-Id: I8ed3ed3ecb8a5005b3aa69a852e3c0f29ef9f43d Signed-off-by: Praneeth Bajjuri <praneeth@ti.com> Signed-off-by: Alistair Strachan <astrachan@google.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 417d522c..65275ecd 100644
--- a/omap/omap_drm.c
+++ b/omap/omap_drm.c
@@ -414,7 +414,7 @@ int omap_bo_dmabuf(struct omap_bo *bo)
414 if (bo->fd < 0) { 414 if (bo->fd < 0) {
415 struct drm_prime_handle req = { 415 struct drm_prime_handle req = {
416 .handle = bo->handle, 416 .handle = bo->handle,
417 .flags = DRM_CLOEXEC, 417 .flags = DRM_CLOEXEC | DRM_RDWR,
418 }; 418 };
419 int ret; 419 int ret;
420 420