aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/modules/freesync/freesync.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <[email protected]>2023-12-21 01:46:23 +0000
committerAlex Deucher <[email protected]>2024-01-05 21:10:43 +0000
commit499839eca34ad62d43025ec0b46b80e77065f6d8 (patch)
treeda2ccd93d3b75e080e85e499bd19eb8097343e38 /drivers/gpu/drm/amd/display/modules/freesync/freesync.c
parentdrm/amdgpu: Fix '*fw' from request_firmware() not released in 'amdgpu_ucode_r... (diff)
downloadkernel-499839eca34ad62d43025ec0b46b80e77065f6d8.tar.gz
kernel-499839eca34ad62d43025ec0b46b80e77065f6d8.zip
drm/amdkfd: Confirm list is non-empty before utilizing list_first_entry in kfd_topology.c
Before using list_first_entry, make sure to check that list is not empty, if list is empty return -ENODATA. Fixes the below: drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:1347 kfd_create_indirect_link_prop() warn: can 'gpu_link' even be NULL? drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:1428 kfd_add_peer_prop() warn: can 'iolink1' even be NULL? drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c:1433 kfd_add_peer_prop() warn: can 'iolink2' even be NULL? Fixes: 0f28cca87e9a ("drm/amdkfd: Extend KFD device topology to surface peer-to-peer links") Cc: Felix Kuehling <[email protected]> Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Suggested-by: Felix Kuehling <[email protected]> Suggested-by: Lijo Lazar <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
0 files changed, 0 insertions, 0 deletions