aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32-lp.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2019-04-24 09:46:27 +0000
committerMauro Carvalho Chehab <[email protected]>2019-05-08 18:02:25 +0000
commitb72845ee5577b227131b1fef23f9d9a296621d7b (patch)
treec4a00b157d0dcb943e8692b1c754fc2703c9eb96 /drivers/pwm/pwm-stm32-lp.c
parentmedia: field-order.rst: clarify FIELD_ANY and FIELD_NONE (diff)
downloadkernel-b72845ee5577b227131b1fef23f9d9a296621d7b.tar.gz
kernel-b72845ee5577b227131b1fef23f9d9a296621d7b.zip
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: 66715cdc3224 ("[media] davinci vpbe: VPBE display driver") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: "Lad, Prabhakar" <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32-lp.c')
0 files changed, 0 insertions, 0 deletions