]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdkfd: Check for NULL return values
authorAndrew Martin <andrew.martin@amd.com>
Fri, 12 Dec 2025 07:59:17 +0000 (15:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Feb 2026 17:16:11 +0000 (12:16 -0500)
commit09da66f139b43c217e22435d6e50b0d9960f5183
treed03a9f96ca13fc62e0bf304aa0b27bfd2deadf6c
parentf0157ce46cf0e5e2257e19d590c9b16036ce26d4
drm/amdkfd: Check for NULL return values

This patch fixes issues when the code moves forward with a potential
NULL pointer, without checking.
Removed one redundant NULL check for a function parameter. This check
is already done in the only caller.

Signed-off-by: Andrew Martin <andrew.martin@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_fence.c
drivers/gpu/drm/amd/amdkfd/kfd_crat.c
drivers/gpu/drm/amd/amdkfd/kfd_debug.c
drivers/gpu/drm/amd/amdkfd/kfd_process.c