TencentOS-kernel/drivers/gpu/drm/amd/display
Nicholas Kazlauskas a64255a476 drm/amd/display: Guard against NULL pointer deref when get_i2c_info fails
[ Upstream commit 44a09e3d95bd2b7b0c224100f78f335859c4e193 ]

[Why]
If the BIOS table is invalid or corrupt then get_i2c_info can fail
and we dereference a NULL pointer.

[How]
Check that ddc_pin is not NULL before using it and log an error if it
is because this is unexpected.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Anson Jacob <anson.jacob@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-12 12:52:47 +08:00
..
amdgpu_dm drm/amd/display: Decrement refcount of dc_sink before reassignment 2021-04-12 12:52:02 +08:00
dc drm/amd/display: Guard against NULL pointer deref when get_i2c_info fails 2021-04-12 12:52:47 +08:00
include drm/amd/display: fix pow() crashing when given base 0 2021-03-16 16:34:30 +08:00
modules drm/amdgpu: fix build_coefficients() argument 2021-03-16 16:42:40 +08:00
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
TODO Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00