linux-brain/drivers/gpu/drm/amd/display/dc
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
..
basics drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00
bios drm/amd/display: Fix HDMI deep color output for DCE 6-11. 2021-03-04 10:26:22 +01:00
calcs drm/amdgpu/display: handle multiple numbers of fclks in dcn_calcs.c (v2) 2020-02-24 08:37:03 +01:00
clk_mgr drm/amd/display: Init clock value by current vbios CLKs 2020-12-30 11:50:57 +01:00
core drm/amd/display: Guard against NULL pointer deref when get_i2c_info fails 2021-03-07 12:20:46 +01:00
dce drm/amd/display: Fix HDMI deep color output for DCE 6-11. 2021-03-04 10:26:22 +01:00
dce80 drm/amd/display: memory leak 2019-10-02 12:58:33 -05:00
dce100 drm/amd/display: memory leak 2019-10-02 12:58:33 -05:00
dce110 drm/amd/display: memory leak 2019-10-02 12:58:33 -05:00
dce112 drm/amd/display: memory leak 2019-10-02 12:58:33 -05:00
dce120 drm/amd/display: memory leak 2019-10-02 12:58:33 -05:00
dcn10 drm/amd/display: Increase timeout for DP Disable 2020-11-05 11:43:33 +01:00
dcn20 drm/amd/display: update nv1x stutter latencies 2020-10-01 13:18:15 +02:00
dcn21 drm/amd/display: Add more Clock Sources to DCN2.1 2021-02-17 10:35:15 +01:00
dml drm/amd/display: fixup DML dependencies 2020-02-24 08:36:51 +01:00
dsc drm/amdgpu: enable -msse2 for GCC 7.1+ users 2019-10-30 11:56:20 -04:00
gpio drm/amd/display: Fix kernel panic by dal_gpio_open() error 2020-11-05 11:43:34 +01:00
inc drm/amd/display: fix image corruption with ODM 2:1 DSC 2 slice 2020-10-01 13:17:38 +02:00
irq drm/amd/display: Add vupdate_no_lock interrupts for DCN2.1 2021-03-04 10:26:43 +01:00
virtual drm/amd/display: reset hdmi tmds rate and data scramble on pipe reset 2019-08-15 10:52:59 -05:00
Makefile drm/amd/display: build dcn21 blocks 2019-08-29 15:52:33 -05:00
dc.h drm/amd/display: add dcn21 core DC changes 2019-08-29 15:52:33 -05:00
dc_bios_types.h drm/amd/display: make firmware info only load once during dc_bios create 2019-08-15 10:53:36 -05:00
dc_ddc_types.h drm/amd/display: add i2c over aux failure handling 2019-03-19 15:36:49 -05:00
dc_dp_types.h drm/amd/display: Synchronous DisplayPort Link Training 2019-08-15 10:53:30 -05:00
dc_dsc.h drm/amd/display: update DSC MST DP virtual DPCD peer device enumeration policy 2019-06-22 09:34:13 -05:00
dc_helper.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
dc_hw_types.h drm/amd/display: Expose OTG_V_TOTAL_MID for HW Diags 2019-08-23 11:43:42 -05:00
dc_link.h drm/amd/display: Synchronous DisplayPort Link Training 2019-08-15 10:53:30 -05:00
dc_stream.h drm/amd/display: Expose audio inst from DC to DM 2019-07-11 14:37:24 -05:00
dc_types.h drm/amd/display: add set and get clock for testing purposes 2019-07-18 14:27:25 -05:00
dm_event_log.h
dm_helpers.h drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dm_pp_smu.h drm/amd/display: Add pp_smu functions for Renoir 2019-08-29 15:52:33 -05:00
dm_services.h drm/amd/display: refactor dump_clk_registers 2019-07-18 14:18:09 -05:00
dm_services_types.h drm/amd/display: PPLIB Hookup 2019-03-05 15:09:32 -05:00
irq_types.h
os_types.h drm/amd/display: Don't invoke kgdb_breakpoint() unconditionally 2020-11-05 11:43:34 +01:00