2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-20 11:13:58 +08:00
linux-next/drivers/media/usb
Kieran Bingham 0dc68cabdb media: uvcvideo: Prevent setting unavailable flags
The addition of an extra operation to use the GET_INFO command
overwrites all existing flags from the uvc_ctrls table. This includes
setting all controls as supporting GET_MIN, GET_MAX, GET_RES, and
GET_DEF regardless of whether they do or not.

Move the initialisation of these control capabilities directly to the
uvc_ctrl_fill_xu_info() call where they were originally located in that
use case, and ensure that the new functionality in uvc_ctrl_get_flags()
will only set flags based on their reported capability from the GET_INFO
call.

Fixes: 859086ae36 ("media: uvcvideo: Apply flags from device to actual properties")

Cc: stable@vger.kernel.org
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-06-05 09:33:51 -04:00
..
airspy media: usb: make video_device const 2017-08-27 08:45:32 -04:00
as102 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
au0828 media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
b2c2 media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
cpia2 media: cpia2_usb: drop bogus interface-release call 2018-03-21 12:12:04 -04:00
cx231xx media: usb: cx231xx-417: include linux/slab.h header 2018-05-11 11:37:57 -04:00
dvb-usb media: gp8psk: don't abuse of GFP_DMA 2018-05-14 07:18:19 -04:00
dvb-usb-v2 media: dvbsky: use just one mutex for serializing device R/W ops 2018-05-10 07:05:14 -04:00
em28xx media: em28xx: Demote several dev_err to dev_info 2018-05-11 11:30:38 -04:00
go7007 media: go7007: fix two sparse warnings 2018-05-25 15:30:04 -04:00
gspca media: gspca_zc3xx: Enable short exposure times for OV7648 2018-05-28 16:35:41 -04:00
hackrf media: hackrf: group device capabilities 2018-05-11 11:25:23 -04:00
hdpvr media: hdpvr: fix spelling mistake: "Hauppage" -> "Hauppauge" 2018-05-28 16:24:50 -04:00
msi2500 media: usb: fix spelling mistake: "synchronuously" -> "synchronously" 2017-11-07 03:47:09 -05:00
pulse8-cec media: pulse8-cec: print time using time64_t 2017-12-08 11:08:22 -05:00
pvrusb2 media: pvrusb2: replace pvr2_v4l2_ioctl by video_ioctl2 2018-05-28 16:28:09 -04:00
pwc media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
rainshadow-cec media: usb: rainshadow-cec: constify serio_device_id 2017-08-20 08:27:29 -04:00
s2255 media: s2255drv: fix a casting warning 2018-03-23 06:56:55 -04:00
siano media: siano: use GFP_DMA only for smssdio 2018-05-15 08:04:42 -04:00
stk1160 media: stk1160: Add missing calls to mutex_destroy 2018-05-28 16:20:01 -04:00
stkwebcam vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
tm6000 MAINTAINERS & files: Canonize the e-mails I use at files 2018-05-04 06:21:06 -04:00
ttusb-budget media updates for v4.16-rc1 2018-02-06 11:27:48 -08:00
ttusb-dec media: dvb: update buffer mmaped flags and frame counter 2018-02-23 11:44:08 -05:00
usbtv media: usbtv: Implement wait_prepare and wait_finish 2018-05-25 15:17:19 -04:00
usbvision media: media/usbvision: fix spelling mistake: "compresion" -> "compression" 2018-05-09 16:24:02 -04:00
uvc media: uvcvideo: Prevent setting unavailable flags 2018-06-05 09:33:51 -04:00
zr364xx media: zr364xx: avoid casting just to print pointer address 2018-03-23 07:31:59 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00