These are not copied to kernel space by video_usercopy, so mark them as __user.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -1285,11 +1285,11 @@ struct v4l2_ext_control { · 1284 unmodified lines | ||
| 1285 | 1285 | union { |
| 1286 | 1286 | __s32 value; |
| 1287 | 1287 | __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; | |
| 1293 | 1293 | }; |
| 1294 | 1294 | } __attribute__ ((packed)); |
| 1295 | 1295 | |