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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:17 +0000 (20:22 +0300)
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 e159dfc21279cdafb729f7ccc281da3a400b4eab..3905c427757402df741ef155170396077d97a547 100644 (file)
@@ -507,6 +507,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) ||