diff options
author | Wayne Lin <Wayne.Lin@amd.com> | 2021-11-26 15:19:57 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-12-07 13:10:38 -0500 |
commit | 4bef85d4c9491415b7931407b07f24841c1e0390 (patch) | |
tree | 8ee34505f6b343e0c3530fffd00e76039ba23a13 /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c | |
parent | a1f5e392de78f122629412d6e4350d1c887f1711 (diff) | |
download | linux-4bef85d4c9491415b7931407b07f24841c1e0390.tar.gz linux-4bef85d4c9491415b7931407b07f24841c1e0390.tar.bz2 linux-4bef85d4c9491415b7931407b07f24841c1e0390.zip |
drm/amd/display: Fix bug in debugfs crc_win_update entry
[Why]
crc_rd_wrk shouldn't be null in crc_win_update_set(). Current programming
logic is inconsistent in crc_win_update_set().
[How]
Initially, return if crc_rd_wrk is NULL. Later on, we can use member of
crc_rd_wrk safely.
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 9a65df193108 ("drm/amd/display: Use PSP TA to read out crc")
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c')
0 files changed, 0 insertions, 0 deletions