aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
diff options
context:
space:
mode:
authorYang Li <[email protected]>2021-11-15 08:10:19 +0000
committerAlex Deucher <[email protected]>2021-11-22 19:45:03 +0000
commita689e8d1f80012f90384ebac9dcfac4201f9f77e (patch)
treea1c835e853df366f8aefb80d4cfa6344d3d056d7 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
parentdrm/amd/display: cleanup the code a bit (diff)
downloadkernel-a689e8d1f80012f90384ebac9dcfac4201f9f77e.tar.gz
kernel-a689e8d1f80012f90384ebac9dcfac4201f9f77e.zip
drm/amd/display: check top_pipe_to_program pointer
Clang static analysis reports this error drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:2870:7: warning: Dereference of null pointer [clang-analyzer-core.NullDereference] if (top_pipe_to_program->stream_res.tg->funcs->lock_doublebuffer_enable) { ^ top_pipe_to_program being NULL is caught as an error But then it is used to report the error. So add a check before using it. Reported-by: Abaci Robot <[email protected]> Signed-off-by: Yang Li <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
0 files changed, 0 insertions, 0 deletions