android_kernel_samsung_a7y1.../include/media
Dan Carpenter 693df3d08b media: davinci/vpbe: array underflow in vpbe_enum_outputs()
[ Upstream commit b72845ee5577b227131b1fef23f9d9a296621d7b ]

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: 66715cdc3224 ("[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 13:41:48 +02:00
..
blackfin A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
davinci media: davinci/vpbe: array underflow in vpbe_enum_outputs() 2020-04-07 13:41:48 +02:00
ad9389b.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adp1653.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7183.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7343.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7393.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7511.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7604.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
adv7842.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ak881x.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
as3645a.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bt819.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cs53l32a.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cs5345.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cx2341x.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cx25840.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
exynos_mc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
exynos-fimc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gpio-ir-recv.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
i2c-addr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ir-kbd-i2c.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ir-rx51.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lirc_dev.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lirc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lm3560.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lm3646.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
m2m1shot-helper.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
m2m1shot.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
m2m1shot2.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
m5mols.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
m52790.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
media-device.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
media-devnode.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
media-entity.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mmp-camera.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msp3400.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9m032.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9p031.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9t001.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9t112.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9v011.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9v022.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
mt9v032.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
noon010pc30.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
omap1_camera.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
omap4iss.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ov772x.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ov2659.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ov7670.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ov9650.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rc-core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rc-map.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rj54n1cb0c.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s3c_camif.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s5c73m3.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s5k4ecgx.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s5k6aa.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s5p_hdmi.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa6588.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa7115.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa7127.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa7146_vv.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
saa7146.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sh_mobile_ceu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sh_mobile_csi2.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sh_vou.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
si476x.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
si4713.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sii9234.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smiapp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
soc_camera_platform.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
soc_camera.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
soc_mediabus.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sr030pc30.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tc358743.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tea575x.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ths7303.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
timb_radio.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
timb_video.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tuner-types.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tuner.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvaudio.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tveeprom.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvp514x.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvp5150.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tvp7002.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tw9910.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
uda1342.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
upd64031a.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
upd64083.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-async.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-clk.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-common.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-ctrls.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-dev.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-device.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-dv-timings.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-event.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-fh.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-flash-led-class.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-image-sizes.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-ioctl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-mediabus.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-mem2mem.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-of.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
v4l2-subdev.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf-core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf-dma-contig.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf-dma-sg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf-dvb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf-vmalloc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf2-core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf2-dma-contig.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf2-dma-sg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf2-dvb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf2-ion.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf2-memops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf2-v4l2.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
videobuf2-vmalloc.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
wm8775.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30