aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
diff options
context:
space:
mode:
authorDaniil Dulov <d.dulov@aladdin.ru>2023-05-11 04:23:14 -0700
committerAlex Deucher <alexander.deucher@amd.com>2023-06-09 09:38:38 -0400
commitcabbdea1f1861098991768d7bbf5a49ed1608213 (patch)
treed3cb0cd366ce0d193c99965625ed1c0afd40615b /drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
parentdrm/amdgpu: change gfx 11.0.4 external_id range (diff)
downloadwireguard-linux-cabbdea1f1861098991768d7bbf5a49ed1608213.tar.xz
wireguard-linux-cabbdea1f1861098991768d7bbf5a49ed1608213.zip
drm/amdkfd: Fix potential deallocation of previously deallocated memory.
Pointer mqd_mem_obj can be deallocated in kfd_gtt_sa_allocate(). The function then returns non-zero value, which causes the second deallocation. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: d1f8f0d17d40 ("drm/amdkfd: Move non-sdma mqd allocation out of init_mqd") Signed-off-by: Daniil Dulov <d.dulov@aladdin.ru> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c')
0 files changed, 0 insertions, 0 deletions