summaryrefslogtreecommitdiff
path: root/include/Kbuild
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2019-04-24 05:46:27 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-29 10:21:43 +0100
commit7aa9ac350e773146592920099f0613883e4a7abd (patch)
treebc6ce1aef9bf27f8bb79abc9944d53f243759057 /include/Kbuild
parent92c81b011775600c665ce0d9b0cb576c4c62b65b (diff)
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>
Diffstat (limited to 'include/Kbuild')
0 files changed, 0 insertions, 0 deletions