diff options
| author | Philip Yang <Philip.Yang@amd.com> | 2024-07-14 18:11:05 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2024-07-24 00:34:44 +0300 |
| commit | c86ad39140bbcb9dc75a10046c2221f657e8083b (patch) | |
| tree | 01bdda15e2cff584d8e8d2778e0e312685aa3a56 /drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | |
| parent | f9e292cbba21e79abea7315b41a52c36ea2b6980 (diff) | |
| download | linux-c86ad39140bbcb9dc75a10046c2221f657e8083b.tar.xz | |
drm/amdkfd: amdkfd_free_gtt_mem clear the correct pointer
Pass pointer reference to amdgpu_bo_unref to clear the correct pointer,
otherwise amdgpu_bo_unref clear the local variable, the original pointer
not set to NULL, this could cause use-after-free bug.
Signed-off-by: Philip Yang <Philip.Yang@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/sdma_v4_0.c')
0 files changed, 0 insertions, 0 deletions
