summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSunil Khatri <sunil.khatri@amd.com>2025-10-28 11:19:24 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-11-04 19:33:53 +0300
commitc0de552910bbd9e49568c1052e00ed118712152a (patch)
treeb7332c676912b942973b2233186aad3dc3bab92d /include/linux
parentf67d54e96bc9e4e20a927868f02c2e9d1aa09751 (diff)
downloadlinux-c0de552910bbd9e49568c1052e00ed118712152a.tar.xz
drm/amdkfd: clean up the code to free hmm_range
a. hmm_range is either NULL or a valid pointer so we do not need to set range to NULL ever. b. keep the hmm_range_free in the end irrespective of the other conditions to avoid some additional checks and also avoid double free issue. Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions