diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2015-03-14 13:28:25 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-04-02 18:30:36 -0300 |
commit | 9b239b22df3ced4629af97e7edda558f1e7531b6 (patch) | |
tree | 6d52ea1fc2f71cad1010a90fd0baa1f1750fd175 /drivers/media/usb/em28xx/em28xx-camera.c | |
parent | 2c9fc463d60b9d09111fde5903e1f3e8e891a674 (diff) | |
download | linux-9b239b22df3ced4629af97e7edda558f1e7531b6.tar.gz linux-9b239b22df3ced4629af97e7edda558f1e7531b6.tar.xz |
[media] v4l2-ioctl: allow all controls if ctrl_class == 0
The check_ext_ctrls() function in v4l2-ioctl.c checks if all controls in the
control array are from the same control class as c->ctrl_class. However,
that check should only be done if c->ctrl_class != 0. A 0 value means
that this restriction does not apply.
So return 1 (OK) if c->ctrl_class == 0.
Found by running v4l2-compliance on the uvc driver.
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@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/em28xx/em28xx-camera.c')
0 files changed, 0 insertions, 0 deletions