Re: [PATCH] drm/amdgpu: fix potential double drop fence reference

2019-11-06 Thread Alex Deucher
On Wed, Nov 6, 2019 at 4:39 AM Koenig, Christian wrote: > > Am 06.11.19 um 10:14 schrieb Pan Bian: > > 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

[PATCH] drm/amdgpu: fix potential double drop fence reference

2019-11-06 Thread Pan Bian
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. Signed-off-by: Pan Bian --- dr

Re: [PATCH] drm/amdgpu: fix potential double drop fence reference

2019-11-06 Thread Koenig, Christian
Am 06.11.19 um 10:14 schrieb Pan Bian: > 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 i