]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/amdgpu: fix amdgpu_hmm_range_get_pages
authorChristian König <christian.koenig@amd.com>
Wed, 18 Feb 2026 11:53:27 +0000 (12:53 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 27 May 2026 14:51:02 +0000 (10:51 -0400)
commitc08972f555945cda57b0adb72272a37910153390
tree44a0e39f5a99fcd078df5ee7aa53f2126c3765f8
parent82502db448aa9eca2c8d8ee8b424f37aa9ce3ac0
drm/amdgpu: fix amdgpu_hmm_range_get_pages

The notifier sequence must only be read once or otherwise we could work
with invalid pages.

While at it also fix the coding style, e.g. drop the pre-initialized
return value and use the common define for 2G range.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Tested-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c