From: Hans Verkuil Date: Sat, 14 Mar 2015 16:28:25 +0000 (-0300) Subject: [media] v4l2-ioctl: allow all controls if ctrl_class == 0 X-Git-Tag: omap-for-v4.1/fixes-rc1~72^2~1^2~199 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b239b22df3ced4629af97e7edda558f1e7531b6;p=pandora-kernel.git [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 Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed