From 7ca1afa7431f80b2edf514e0d29a0ebe9efeee42 Mon Sep 17 00:00:00 2001 From: Cho KyongHo Date: Thu, 22 Feb 2018 21:13:35 +0900 Subject: [PATCH] v4l2-compat-ioctl32: copy extra v4l2_buffer fields from user 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 Signed-off-by: CHOIHYOJOO --- drivers/media/v4l2-core/v4l2-compat-ioctl32.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c index cbeea8343a5c..464ecf62e7e5 100644 --- a/drivers/media/v4l2-core/v4l2-compat-ioctl32.c +++ b/drivers/media/v4l2-core/v4l2-compat-ioctl32.c @@ -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) || -- 2.20.1