summaryrefslogtreecommitdiff
path: root/samples/bpf/lathist_user.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-02-14 12:48:24 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-02-17 13:21:16 +0100
commit9a7cd41be3ade82208da3a9792a0bca175f6aafc (patch)
treed9767bcbbf850b0f838325530a225edbc1d33385 /samples/bpf/lathist_user.c
parenteec955463de3259c0db5b38952f79c3e39e03f65 (diff)
media: v4l2-compat-ioctl32.c: fix ctrl_is_pointer
commit b8c601e8af2d08f733d74defa8465303391bb930 upstream. ctrl_is_pointer just hardcoded two known string controls, but that caused problems when using e.g. custom controls that use a pointer for the payload. Reimplement this function: it now finds the v4l2_ctrl (if the driver uses the control framework) or it calls vidioc_query_ext_ctrl (if the driver implements that directly). In both cases it can now check if the control is a pointer control or not. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/bpf/lathist_user.c')
0 files changed, 0 insertions, 0 deletions