v4l2-compat-ioctl32: copy extra v4l2_buffer fields from user
authorCho KyongHo <pullip.cho@samsung.com>
Thu, 22 Feb 2018 12:13:35 +0000 (21:13 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:40 +0000 (14:28 +0900)
reserved field of v4l2_buffer structure delivers an acquire fence for
rendering devices implementing V4L2 for Android.
timecode, sequence and reserved2 fields of v4l2_buffer structure are
required by MFC driver and ExynosOMX.

Change-Id: Id1c7ef3b8b5d8574172d12ee52110d881e75585c
Signed-off-by: Cho KyongHo <pullip.cho@samsung.com>
Signed-off-by: CHOIHYOJOO <hyoj.choi@samsung.com>
drivers/media/v4l2-core/v4l2-compat-ioctl32.c

index cbeea8343a5c21b052e2e4ab37d098f387f33428..464ecf62e7e5ea6ed7d089620f9ff9246a960e7a 100644 (file)
@@ -505,6 +505,7 @@ static int get_v4l2_buffer32(struct v4l2_buffer __user *kp,
 
        if (V4L2_TYPE_IS_OUTPUT(type))
                if (assign_in_user(&kp->bytesused, &up->bytesused) ||
+                   assign_in_user(&kp->reserved2, &up->reserved2) ||
                    assign_in_user(&kp->field, &up->field) ||
                    assign_in_user(&kp->timestamp.tv_sec,
                                   &up->timestamp.tv_sec) ||