]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: null check for hmm_pfns ptr before freeing it
authorSunil Khatri <sunil.khatri@amd.com>
Tue, 21 Oct 2025 09:44:06 +0000 (15:14 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 13:54:46 +0000 (09:54 -0400)
commit84564d2920b8c858d96cb7471b45203d35f63b61
treec6d4da179b10add3c6b12a23dfc12ee02c997f1f
parent6f1ee58a5e56c4a7b5b3fe9323e4510df156449c
drm/amdgpu: null check for hmm_pfns ptr before freeing it

Due to low memory or when num of pages is too big to be
accomodated, allocation could fail for pfn's.

Chekc hmm_pfns for NULL before calling the kvfree for the it.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Acked-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c