]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdkfd: add missing return value check for range
authorSunil Khatri <sunil.khatri@amd.com>
Fri, 24 Oct 2025 04:44:56 +0000 (10:14 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 13:59:37 +0000 (09:59 -0400)
commit7bb02a34c2ba69bbe0329fc3049c795f7ba66b9a
tree15168df1f09be04cf6edd0821bad019d4f06b7df
parent97010d773208c4b800e4af1063e58a97c056f40b
drm/amdkfd: add missing return value check for range

amdgpu_hmm_range_alloc could fails in case of low
memory condition and hence we should have a check
for the return value.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Shirish S <shirish.s@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c