linux-brain/drivers/gpu/drm/amd/display
Nicholas Kazlauskas 0e9d790276 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-03-07 12:20:46 +01:00
..
amdgpu_dm drm/amd/display: Decrement refcount of dc_sink before reassignment 2021-02-17 10:35:15 +01:00
dc drm/amd/display: Guard against NULL pointer deref when get_i2c_info fails 2021-03-07 12:20:46 +01:00
include drm/amd/display: fix pow() crashing when given base 0 2020-08-26 10:40:53 +02:00
modules drm/amdgpu: fix build_coefficients() argument 2020-12-30 11:51:04 +01:00
Kconfig drm/amd/display: add Renoir to kconfig 2019-08-29 15:52:33 -05:00
Makefile drm/amd/display: move clk_mgr files to right place 2019-05-31 10:39:31 -05:00
TODO drm/amd/display: Convert remaining loggers off dc_logger 2018-07-13 14:48:42 -05:00