Files
twx-linux/drivers
Pan Bian e54d9ee1b1 drm/amdgpu: fix potential double drop fence reference
[ Upstream commit 946ab8db69 ]

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 <christian.koenig@amd.com>
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-31 12:37:30 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2019-12-17 20:39:13 +01:00
…
…
…
…
…
…
2019-12-05 15:38:12 +01:00
…
…
…
…
…
…
…
…
…
…
2019-12-17 20:39:42 +01:00
…
…
…
…