diff options
author | Pan Bian <[email protected]> | 2019-11-06 17:14:45 +0800 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2019-11-06 16:27:48 -0500 |
commit | 946ab8db6953535a3a88c957db8328beacdfed9d (patch) | |
tree | 860770973362aa44ae5e12c67c85c3f87c160e92 /drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | |
parent | f88e2d1f8ec40854c684d73ecf1cf66d4c6dad35 (diff) |
drm/amdgpu: fix potential double drop fence reference
The object fence is not set to NULL after its reference is dropped. As a
result, its reference may be dropped again if error occurs after that,
which may lead to a use after free bug. To avoid the issue, fence is
explicitly set to NULL after dropping its reference.
Acked-by: Christian König <[email protected]>
Signed-off-by: Pan Bian <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c')
0 files changed, 0 insertions, 0 deletions