History

[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.

Hans Verkuil committed 12 years ago

Commit eadf9e21 parent 4a9e5121 file · +5 −5Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/videodev2.h+5−5
@@ -1285,11 +1285,11 @@ struct v4l2_ext_control { · 1284 unmodified lines
12851285 union {
12861286 __s32 value;
12871287 __s64 value64;
1288− char *string;
1289− __u8 *p_u8;
1290− __u16 *p_u16;
1291− __u32 *p_u32;
1292− void *ptr;
1288+ char __user *string;
1289+ __u8 __user *p_u8;
1290+ __u16 __user *p_u16;
1291+ __u32 __user *p_u32;
1292+ void __user *ptr;
12931293 };
12941294 } __attribute__ ((packed));
12951295