1
0
Fork 0
alistair23-linux/drivers/media
Daniel W. S. Almeida 8f71fb76a3 media: uvcvideo: Fix dereference of out-of-bound list iterator
[ Upstream commit f875bcc375 ]

Fixes the following coccinelle report:

drivers/media/usb/uvc/uvc_ctrl.c:1860:5-11:
ERROR: invalid reference to the index variable of the iterator on line 1854

by adding a boolean variable to check if the loop has found the

Found using - Coccinelle (http://coccinelle.lip6.fr)

[Replace cursor variable with bool found]

Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@gmail.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-11-05 11:43:17 +01:00
..
cec cec-api: prevent leaking memory through hole in structure 2020-09-03 11:26:46 +02:00
common media: v4l2-tpg: add support for new pixelformats 2019-07-30 12:16:45 -04:00
dvb-core media: dvbdev: Fix tuner->demod media controller link 2020-06-22 09:30:55 +02:00
dvb-frontends media: tda10071: fix unsigned sign extension overflow 2020-10-01 13:17:41 +02:00
firewire media: firewire: fix memory leak 2020-10-29 09:58:01 +01:00
i2c media: imx274: fix frame interval handling 2020-11-05 11:43:16 +01:00
mc media: mc-device.c: fix memleak in media_device_register_entity 2020-10-01 13:17:10 +02:00
mmc treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
pci media: tw5864: check status of tw5864_frameinterval_get 2020-11-05 11:43:16 +01:00
platform media: platform: Improve queue set up flow for bug fixing 2020-11-05 11:43:15 +01:00
radio media: si470x-i2c: add missed operations in remove 2019-12-31 16:45:13 +01:00
rc media: ati_remote: sanity check for both endpoints 2020-10-29 09:58:01 +01:00
spi media: Clarify how menus are hidden by SUBDRV_AUTOSELECT 2019-08-19 12:00:29 -03:00
tuners media: tuner-simple: fix regression in simple_set_radio_freq 2020-10-29 09:57:31 +01:00
usb media: uvcvideo: Fix dereference of out-of-bound list iterator 2020-11-05 11:43:17 +01:00
v4l2-core media: v4l2-core: fix a use-after-free bug of sd->devnode 2020-04-01 11:02:18 +02:00
Kconfig media: Clarify how menus are hidden by SUBDRV_AUTOSELECT 2019-08-19 12:00:29 -03:00
Makefile media: move drivers/media/media-* to drivers/media/mc/mc-* 2019-05-28 12:15:46 -04:00