Commit eadf9e26 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] videodev2.h: add __user to v4l2_ext_control pointers

These are not copied to kernel space by video_usercopy, so mark them
as __user.
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 4a9e512a
...@@ -1285,11 +1285,11 @@ struct v4l2_ext_control { ...@@ -1285,11 +1285,11 @@ struct v4l2_ext_control {
union { union {
__s32 value; __s32 value;
__s64 value64; __s64 value64;
char *string; char __user *string;
__u8 *p_u8; __u8 __user *p_u8;
__u16 *p_u16; __u16 __user *p_u16;
__u32 *p_u32; __u32 __user *p_u32;
void *ptr; void __user *ptr;
}; };
} __attribute__ ((packed)); } __attribute__ ((packed));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment