aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/power/power_helpers.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2024-06-05 15:43:40 +0000
committerAlex Deucher <[email protected]>2024-06-14 19:33:21 +0000
commit38e6f715b02b572f74677eb2f29d3b4bc6f1ddff (patch)
tree394145bc29dcaf5f8b5c831d21fb1ee5a4283092 /drivers/gpu/drm/amd/display/modules/power/power_helpers.c
parentdrm/amd/display: Add null check for 'afb' in amdgpu_dm_update_cursor (diff)
downloadkernel-38e6f715b02b572f74677eb2f29d3b4bc6f1ddff.tar.gz
kernel-38e6f715b02b572f74677eb2f29d3b4bc6f1ddff.zip
drm/amd/display: Add NULL check for 'afb' before dereferencing in amdgpu_dm_plane_handle_cursor_update
This commit adds a null check for the 'afb' variable in the amdgpu_dm_plane_handle_cursor_update function. Previously, 'afb' was assumed to be null, but was used later in the code without a null check. This could potentially lead to a null pointer dereference. Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_plane.c:1298 amdgpu_dm_plane_handle_cursor_update() error: we previously assumed 'afb' could be null (see line 1252) Cc: Tom Chung <[email protected]> Cc: Rodrigo Siqueira <[email protected]> Cc: Roman Li <[email protected]> Cc: Hersen Wu <[email protected]> Cc: Alex Hung <[email protected]> Cc: Aurabindo Pillai <[email protected]> Cc: Harry Wentland <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/power/power_helpers.c')
0 files changed, 0 insertions, 0 deletions