diff options
| author | Michel Dänzer <[email protected]> | 2018-09-12 16:07:10 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-09-14 14:37:17 +0000 |
| commit | 6a15f3ff19a8dd394e3a21480512c2cb98e26b3c (patch) | |
| tree | dec9fec3936245a92700ac5792af8c3d062070c6 /drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | |
| parent | drm/amdgpu: set CG flags for raven2 (v2) (diff) | |
| download | kernel-6a15f3ff19a8dd394e3a21480512c2cb98e26b3c.tar.gz kernel-6a15f3ff19a8dd394e3a21480512c2cb98e26b3c.zip | |
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 <[email protected]>
Signed-off-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c')
0 files changed, 0 insertions, 0 deletions
