diff options
author | Alex Hung <alex.hung@amd.com> | 2024-06-27 16:45:39 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-10 12:01:14 +0200 |
commit | df8d896f8f94f96c54d5cc798fafd209d830f40d (patch) | |
tree | f37c7a21d19238c9d21a783c872abe51ec5aebc9 /lib/test_overflow.c | |
parent | e34ddcce006633a661e08020147a09424a5ba41f (diff) | |
download | linux-stable-df8d896f8f94f96c54d5cc798fafd209d830f40d.tar.gz linux-stable-df8d896f8f94f96c54d5cc798fafd209d830f40d.tar.bz2 linux-stable-df8d896f8f94f96c54d5cc798fafd209d830f40d.zip |
drm/amd/display: enable_hpo_dp_link_output: Check link_res->hpo_dp_link_enc before using it
commit d925c04d974c657d10471c0c2dba3bc9c7d994ee upstream.
[WHAT & HOW]
Functions dp_enable_link_phy and dp_disable_link_phy can pass link_res
without initializing hpo_dp_link_enc and it is necessary to check for
null before dereferencing.
This fixes 1 FORWARD_NULL issue reported by Coverity.
Fixes: 0beca868cde8 ("drm/amd/display: Check link_res->hpo_dp_link_enc before using it")
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions