linux_dsm_epyc7002/drivers/media/platform/davinci
Dan Carpenter b72845ee55 media: davinci/vpbe: array underflow in vpbe_enum_outputs()
In vpbe_enum_outputs() we check if (temp_index >= cfg->num_outputs) but
the problem is that "temp_index" can be negative.  This patch changes
the types to unsigned to address this array underflow bug.

Fixes: 66715cdc32 ("[media] davinci vpbe: VPBE display driver")

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-05-08 14:02:25 -04:00
..
ccdc_hw_device.h media: davinci: make function arguments const 2017-10-31 07:18:07 -04:00
dm355_ccdc_regs.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
dm355_ccdc.c media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
dm644x_ccdc_regs.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
dm644x_ccdc.c media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
isif_regs.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
isif.c media: davinci-isif: avoid uninitialized variable use 2019-03-29 07:40:10 -04:00
Kconfig media: Remove depends on HAS_DMA in case of platform dependency 2018-05-28 16:17:08 -04:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vpbe_display.c media: vidioc_cropcap -> vidioc_g_pixelaspect 2018-11-20 13:57:21 -05:00
vpbe_osd_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe_osd.c media: headers: fix linux/mod_devicetable.h inclusions 2018-08-02 18:30:54 -04:00
vpbe_venc_regs.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
vpbe_venc.c media: replace strcpy() by strscpy() 2018-09-11 13:32:17 -04:00
vpbe.c media: davinci/vpbe: array underflow in vpbe_enum_outputs() 2019-05-08 14:02:25 -04:00
vpfe_capture.c media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
vpif_capture.c media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
vpif_capture.h [media] davinci: vpif_capture: fix start/stop streaming locking 2017-01-31 08:01:07 -02:00
vpif_display.c media: replace strncpy() by strscpy() 2019-03-29 10:26:13 -04:00
vpif_display.h [media] media/platform: convert drivers to use the new vb2_queue dev field 2016-07-08 14:39:21 -03:00
vpif.c media: platform: fix several typos 2019-03-01 09:35:21 -05:00
vpif.h media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
vpss.c media: vpss: fix annotations for vpss_regs_base2 2018-03-23 06:28:41 -04:00