diff options
| author | Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> | 2026-09-18 10:44:39 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-09-23 14:19:51 -0400 |
| commit | b51576a5d53eaf53e07b07c4841f6981e542b63c (patch) | |
| tree | 0dd2f78e8808890872dd2caf0897407ee8451684 /tools/perf/scripts/python/parallel-perf.py | |
| parent | 2e81792c39d696333c046cd9f01d6b8aff76bff4 (diff) | |
| download | linux-b51576a5d53eaf53e07b07c4841f6981e542b63c.tar.gz linux-b51576a5d53eaf53e07b07c4841f6981e542b63c.zip | |
drm/amd/display: Fix null deref of link_enc in dce110_enable_tmds_link_output
Smatch reports that link->link_enc is unconditionally dereferenced at
the top of dce110_enable_tmds_link_output() while the later
setup_ri_pj_check_in_sw_or_hw_mode calls guard against it being NULL,
making those checks contradictory.
Add an early return when link_enc is NULL and drop the redundant NULL
checks from the two call sites that follow, since link_enc is guaranteed
non-NULL past the guard
Fixes: 992694ad2858 ("drm/amd/display: Enable DCN6 sources compilation")
Reported-by: Dan Carpenter <error27@gmail.com>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Cc: Roman Li <Roman.Li@amd.com>
Cc: Ivan Lipski <ivan.lipski@amd.com>
Cc: Dan Wheeler <daniel.wheeler@amd.com>
Cc: Alex Hung <alex.hung@amd.com>
Cc: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Reviewed-by: Fangzhi Zuo <jerry.zuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
