diff options
-rw-r--r-- | src/uterm_fbdev_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uterm_fbdev_video.c b/src/uterm_fbdev_video.c index 1983bf8..2ca53fd 100644 --- a/src/uterm_fbdev_video.c +++ b/src/uterm_fbdev_video.c @@ -298,7 +298,7 @@ static int display_activate_force(struct uterm_display *disp, if (disp->flags & DISPLAY_DBUF) len *= 2; - dfb->map = mmap(0, len, PROT_WRITE, MAP_SHARED, dfb->fd, 0); + dfb->map = mmap(0, len, PROT_READ | PROT_WRITE, MAP_SHARED, dfb->fd, 0); if (dfb->map == MAP_FAILED) { log_error("cannot mmap device %s (%d): %m", dfb->node, errno); |