Pan Bian 946ab8db69 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 <christian.koenig@amd.com>
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-11-06 16:27:48 -05:00
..
2019-11-04 09:28:51 +10:00
2019-11-04 09:28:51 +10:00
2019-11-06 16:27:46 -05:00
2019-11-04 09:28:51 +10:00
2019-09-16 09:59:21 -05:00
2019-10-30 06:11:47 +10:00
2019-06-20 11:36:22 -05:00
2019-06-20 11:36:22 -05:00
2019-08-21 16:44:41 +10:00
2019-10-03 09:10:58 -05:00
2017-10-20 13:28:44 -04:00
2019-01-14 10:58:37 +01:00
2019-06-10 23:00:01 +02:00
2019-08-09 13:07:28 -05:00
2019-06-20 21:16:38 -05:00
2019-06-14 11:44:24 +02:00
2019-06-14 11:44:24 +02:00
2019-06-14 11:44:24 +02:00
2019-06-14 11:44:24 +02:00