kernel_samsung_a53x/drivers/gpu/drm/amd/display/dc/gpio
Alex Hung 26a7ab0492 drm/amd/display: Check gpio_id before used as array index
[ Upstream commit 2a5626eeb3b5eec7a36886f9556113dd93ec8ed6 ]

[WHY & HOW]
GPIO_ID_UNKNOWN (-1) is not a valid value for array index and therefore
should be checked in advance.

This fixes 5 OVERRUN issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:57 +01:00
..
dce60 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dce80 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dce110 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dce120 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn10 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn20 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn21 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dcn30 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
diagnostics Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ddc_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
generic_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpio_base.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpio_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
gpio_service.c drm/amd/display: Check gpio_id before used as array index 2024-11-23 23:20:57 +01:00
gpio_service.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpd_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_ddc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_ddc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_factory.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_factory.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_generic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_generic.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_gpio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_gpio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_hpd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_hpd.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_translate.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw_translate.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00