drm/exynos: workaround to permit O_RDWR of dma-buf 86/83486/1
authorJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 11 Aug 2016 05:02:28 +0000 (14:02 +0900)
committerJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 11 Aug 2016 05:41:06 +0000 (14:41 +0900)
commite45ebcb09dc6a83e4d0f8bf993138ce49d80587c
treefc809bc58e10ed54d5af882438091691d3514306
parentf94f21c5ba8a8149a9fb67f03d0f2a1673811f7c
drm/exynos: workaround to permit O_RDWR of dma-buf

It is possible for userspace to mmap() directly by the commit
bfe981a09528 ("drm: prime: Honour O_RDWR during prime-handle-to-fd")
but userspace using DRM_IOCTL_PRIME_HANDLE_TO_FD should be modified as
adding DRM_RDWR flag.

This patch permits O_RDWR of dma-buf as workaround until all tizen
kernel applies the commit bfe981a09528 ("drm: prime: Honour O_RDWR
during prime-handle-to-fd") userspace uses DRM_RDWR flag on
DRM_IOCTL_PRIME_HANDLE_TO_FD to mmap() dma-buf directly.

Change-Id: I29e86e98cece1fb84af35b2333c998525a94a381
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_dmabuf.c