summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-10-22 14:03:24 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-10-28 09:50:58 -0400
commit6142aa066061919a436c34c8a182674b48636311 (patch)
treee49d1e799f289c4b90cbcb34257020b28b95b8c7 /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parent92b0a6ae6672857ddeabf892223943d2f0e06c97 (diff)
drm/amdgpu/userqueue: Fix use after free in amdgpu_userq_buffer_vas_list_cleanup()
The amdgpu_userq_buffer_va_list_del() function frees "va_cursor" but it is dereferenced on the next line when we print the debug message. Print the debug message first and then free it. Fixes: 2a28f9665dca ("drm/amdgpu: track the userq bo va for its obj management") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions