]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: caller should make sure not to double free
authorSunil Khatri <sunil.khatri@amd.com>
Tue, 28 Oct 2025 12:09:27 +0000 (17:39 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Nov 2025 16:33:53 +0000 (11:33 -0500)
commitc6526cc6f887c710bab21ee934035a2c9ffb8c4b
tree4cf8f9332a51274b2a196b22218459159e5a72a1
parent1972763505d728c604b537180727ec8132e619df
drm/amdgpu: caller should make sure not to double free

Remove the NULL check from amdgpu_hmm_range_free for hmm_pfns
as caller is responsible not to call amdgpu_hmm_range_free
more than once.

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Christian König <christian.koenig@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_hmm.c