]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: v4l2-compat-ioctl32.c: add capabilities field to, v4l2_input32
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 4 Aug 2017 11:25:06 +0000 (07:25 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 3 Mar 2018 15:52:30 +0000 (15:52 +0000)
commit 037e0865c2ecbaa4558feba239ece08d7e457ec0 upstream.

The v4l2_input32 struct wasn't updated when this field was added.
It didn't cause a failure in the compat code, but it is better to
keep it in sync with v4l2_input to avoid confusion.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/media/v4l2-core/v4l2-compat-ioctl32.c

index 5628b421ec81df1cd85b8701d86905e2cf6816dc..692fb1fef50875e56357f3f13ca496b1bac514f1 100644 (file)
@@ -576,7 +576,8 @@ struct v4l2_input32 {
        __u32        tuner;             /*  Associated tuner */
        compat_u64   std;
        __u32        status;
-       __u32        reserved[4];
+       __u32        capabilities;
+       __u32        reserved[3];
 };
 
 /* The 64-bit v4l2_input struct has extra padding at the end of the struct.