aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2024-07-31 07:45:00 +0000
committerAlex Deucher <[email protected]>2024-08-06 14:44:20 +0000
commit28574b08c70e56d34d6f6379326a860b96749051 (patch)
treeb44a4ffd84cc12e10d938b179fcfbbc0822ae516 /drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
parentdrm/amd/display: Add NULL check for function pointer in dcn401_set_output_tra... (diff)
downloadkernel-28574b08c70e56d34d6f6379326a860b96749051.tar.gz
kernel-28574b08c70e56d34d6f6379326a860b96749051.zip
drm/amd/display: Add NULL check for function pointer in dcn32_set_output_transfer_func
This commit adds a null check for the set_output_gamma function pointer in the dcn32_set_output_transfer_func function. Previously, set_output_gamma was being checked for null, but then it was being dereferenced without any null check. This could lead to a null pointer dereference if set_output_gamma is null. To fix this, we now ensure that set_output_gamma is not null before dereferencing it. We do this by adding a null check for set_output_gamma before the call to set_output_gamma. 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_ring.c')
0 files changed, 0 insertions, 0 deletions