dragon-nx-32: make read/write lay buffers out the same
authorAlan Cox <alan@linux.intel.com>
Fri, 23 Oct 2015 21:42:33 +0000 (22:42 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 23 Oct 2015 21:42:33 +0000 (22:42 +0100)
As suggested by Brett

Kernel/platform-dragon-nx32/devtty.c

index 1766f7f..37b5748 100644 (file)
@@ -376,7 +376,7 @@ static int gfx_draw_op(uarg_t arg, char *ptr, uint8_t *buf)
       return -EFAULT;
     if (arg == GFXIOC_READ) {
       video_read(buf);
-      if (uput(buf + 8, ptr, l))
+      if (uput(buf, ptr, l + 8))
         return EFAULT;
       return 0;
     }