From: Cho KyongHo Date: Thu, 22 Feb 2018 12:13:35 +0000 (+0900) Subject: v4l2-compat-ioctl32: copy extra v4l2_buffer fields from user X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ca1afa7431f80b2edf514e0d29a0ebe9efeee42;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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) ||