diff options
author | 2024-06-27 17:34:18 -0600 | |
---|---|---|
committer | 2024-07-23 17:07:11 -0400 | |
commit | 367cd9ceba1933b63bc1d87d967baf6d9fd241d2 (patch) | |
tree | 7c5d2d83a23e660d72ad70b8c596771dc0f6a428 /drivers/gpu/drm/amd/display/amdgpu_dm | |
parent | drm/amd/display: Initialize denominators' default to 1 (diff) | |
download | wireguard-linux-367cd9ceba1933b63bc1d87d967baf6d9fd241d2.tar.xz wireguard-linux-367cd9ceba1933b63bc1d87d967baf6d9fd241d2.zip |
drm/amd/display: Check null-initialized variables
[WHAT & HOW]
drr_timing and subvp_pipe are initialized to null and they are not
always assigned new values. It is necessary to check for null before
dereferencing.
This fixes 2 FORWARD_NULL issues reported by Coverity.
Reviewed-by: Nevenko Stupar <nevenko.stupar@amd.com>
Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm')
0 files changed, 0 insertions, 0 deletions