diff options
author | Hemant Hariyani | 2014-12-04 00:27:35 -0600 |
---|---|---|
committer | Praneeth Bajjuri | 2018-06-05 06:51:08 -0500 |
commit | ad03011fcb85e6f6636630a72566ca7a35bd49a7 (patch) | |
tree | 072507360110a137f019778dfb67ce56759bbd94 | |
parent | 755140590075bb8509b35ecb1d0a0f9f28761ddb (diff) | |
download | external-libdrm-android-n-iot-release-polk-at1.tar.gz external-libdrm-android-n-iot-release-polk-at1.tar.xz external-libdrm-android-n-iot-release-polk-at1.zip |
omap: Add DRM_RDWR flag to dmabuf exportandroid-p-preview-5android-p-preview-4android-o-mr1-iot-release-1.0.2android-n-iot-release-smart-display-r2android-n-iot-release-smart-displayandroid-n-iot-release-polk-at1
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.c | 2 |
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 | ||