diff options
| author | Sunil Khatri <sunil.khatri@amd.com> | 2025-10-28 13:49:24 +0530 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-11-04 11:33:53 -0500 |
| commit | c0de552910bbd9e49568c1052e00ed118712152a (patch) | |
| tree | b7332c676912b942973b2233186aad3dc3bab92d /drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c | |
| parent | f67d54e96bc9e4e20a927868f02c2e9d1aa09751 (diff) | |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_hmm.c')
0 files changed, 0 insertions, 0 deletions
