aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2024-07-21 13:48:58 +0000
committerAlex Deucher <[email protected]>2024-07-23 21:41:47 +0000
commitf22f4754aaa47d8c59f166ba3042182859e5dff7 (patch)
tree9e00e9f308756979e6b871eb1f12df85a0ce661e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
parentdrm/amd/display: Fix index out of bounds in DCN30 color transformation (diff)
downloadkernel-f22f4754aaa47d8c59f166ba3042182859e5dff7.tar.gz
kernel-f22f4754aaa47d8c59f166ba3042182859e5dff7.zip
drm/amd/display: Add null check for head_pipe in dcn201_acquire_free_pipe_for_layer
This commit addresses a potential null pointer dereference issue in the `dcn201_acquire_free_pipe_for_layer` function. The issue could occur when `head_pipe` is null. The fix adds a check to ensure `head_pipe` is not null before asserting it. If `head_pipe` is null, the function returns NULL to prevent a potential null pointer dereference. Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/resource/dcn201/dcn201_resource.c:1016 dcn201_acquire_free_pipe_for_layer() error: we previously assumed 'head_pipe' could be null (see line 1010) Cc: Tom Chung <[email protected]> Cc: Rodrigo Siqueira <[email protected]> Cc: Roman Li <[email protected]> Cc: Alex Hung <[email protected]> Cc: Aurabindo Pillai <[email protected]> Cc: Harry Wentland <[email protected]> Cc: Hamza Mahfooz <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Tom Chung <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.h')
0 files changed, 0 insertions, 0 deletions