summaryrefslogtreecommitdiff
path: root/kms++/src
diff options
context:
space:
mode:
Diffstat (limited to 'kms++/src')
-rw-r--r--kms++/src/dumbframebuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kms++/src/dumbframebuffer.cpp b/kms++/src/dumbframebuffer.cpp
index d22b9f3..b21e8ff 100644
--- a/kms++/src/dumbframebuffer.cpp
+++ b/kms++/src/dumbframebuffer.cpp
@@ -127,7 +127,7 @@ int DumbFramebuffer::prime_fd(unsigned int plane)
return m_planes[plane].prime_fd;
int r = drmPrimeHandleToFD(card().fd(), m_planes[plane].handle,
- DRM_CLOEXEC, &m_planes[plane].prime_fd);
+ DRM_CLOEXEC | O_RDWR, &m_planes[plane].prime_fd);
if (r)
throw std::runtime_error("drmPrimeHandleToFD failed");