]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix double reference dropping
authorPan Bian <bianpan2016@163.com>
Wed, 6 Nov 2019 11:35:43 +0000 (19:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Nov 2019 21:27:48 +0000 (16:27 -0500)
commit1c0bdef2a8d9e541509aa9414323e7dc1afb65f2
treec45cbfcee971e1a8ca3aaedf38509456cca7156e
parent3bd7c50214845844b3651f19ac5f93012fae029e
drm/amdgpu: fix double reference dropping

The reference to object fence is dropped at the end of the loop.
However, it is dropped again outside the loop. The reference can be
dropped immediately after calling dma_fence_wait() in the loop and
thus the dropping operation outside the loop can be removed.

Reviewed-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>
drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c