linux/drivers/media
Mauro Carvalho Chehab 86b2989361 media: uvc: to the right check at uvc_ioctl_enum_framesizes()
While the logic there is correct, it tricks both humans and
machines, a the check if "i" var is not zero is actually to
validate if the "frames" var was initialized when the loop
ran for the first time.

That produces the following warning:
	drivers/media/usb/uvc/uvc_v4l2.c:1192 uvc_ioctl_enum_framesizes() error: potentially dereferencing uninitialized 'frame'.

Change the logic to do the right test instead.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-03-23 08:37:27 -04:00
..
cec media: cec-core: fix a bug at cec_error_inj_write() 2018-03-23 08:37:22 -04:00
common media: v4l2-tpg-core: avoid buffer overflows 2018-03-23 06:28:42 -04:00
dvb-core media: dvb_frontend: add proper __user annotations 2018-03-22 11:40:15 -04:00
dvb-frontends media: sp887x: fix a warning 2018-03-23 06:54:32 -04:00
firewire vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
i2c media: tda9840: cleanup a warning 2018-03-23 07:48:08 -04:00
mmc media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
pci media: saa7134-alsa: don't use casts to print a buffer address 2018-03-23 07:27:21 -04:00
platform media: vivid-radio-rx: add a cast to avoid a warning 2018-03-23 07:30:03 -04:00
radio media: radio: Critical interrupt bugfix for si470x over i2c 2018-03-21 12:00:02 -04:00
rc media: rc: mceusb: pid 0x0609 vid 0x031d does not under report carrier cycles 2018-03-21 14:03:03 -04:00
spi media: cxd2880: Add all Makefile, Kconfig files and Update MAINTAINERS file for the driver 2018-03-07 05:02:57 -05:00
tuners media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
usb media: uvc: to the right check at uvc_ioctl_enum_framesizes() 2018-03-23 08:37:27 -04:00
v4l2-core media: videobuf-dma-sg: Fix a weird cast 2018-03-23 06:56:13 -04:00
Kconfig media: Kconfig: fix DVB dependencies 2018-03-08 06:06:49 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: zero reservedX fields in media_v2_topology 2018-02-26 09:47:53 -05:00
media-devnode.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
media-entity.c media: media.h: reorganize header to make it easier to understand 2018-02-26 10:14:46 -05:00