diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2018-09-12 18:07:10 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-14 09:37:17 -0500 |
commit | 6a15f3ff19a8dd394e3a21480512c2cb98e26b3c (patch) | |
tree | dec9fec3936245a92700ac5792af8c3d062070c6 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | |
parent | 520cbe0f4a7f170ec0d1167a827bcbec74aef4f4 (diff) |
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/display/amdgpu_dm/amdgpu_dm.h')
0 files changed, 0 insertions, 0 deletions