summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/dce_virtual.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-09-12 18:07:10 +0200
committerAlex Deucher <alexander.deucher@amd.com>2018-09-14 09:37:17 -0500
commit6a15f3ff19a8dd394e3a21480512c2cb98e26b3c (patch)
treedec9fec3936245a92700ac5792af8c3d062070c6 /drivers/gpu/drm/amd/amdgpu/dce_virtual.h
parent520cbe0f4a7f170ec0d1167a827bcbec74aef4f4 (diff)
downloadlinux-6a15f3ff19a8dd394e3a21480512c2cb98e26b3c.tar.bz2
drm/amdgpu: Initialize fences array entries in amdgpu_sa_bo_next_hole
The entries were only initialized once in amdgpu_sa_bo_new. If a fence wasn't signalled yet in the first amdgpu_sa_bo_next_hole call, but then got signalled before a later amdgpu_sa_bo_next_hole call, it could destroy the fence but leave its pointer in the array, resulting in use-after-free in amdgpu_sa_bo_new. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_virtual.h')
0 files changed, 0 insertions, 0 deletions