]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: adjust the judgement of removing fence callback
authorJunwei Zhang <Jerry.Zhang@amd.com>
Wed, 26 Aug 2015 01:34:59 +0000 (09:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Aug 2015 21:50:04 +0000 (17:50 -0400)
commitf25c0faf16452653f513789b2e6551005e63f8fb
tree9ea6e8e0372b44bd196f7be41ec04757dbc0d542
parent7c473f50c046c4ced3d896093bcf946c37fb9093
drm/amdgpu: adjust the judgement of removing fence callback

The fence in the array may be skipped if wait_all is false,
thus the related callback is not initialized with list head.
So removing this kind callback will cause NULL pointer reference.

Signed-off-by: Junwei Zhang <Jerry.Zhang@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c