]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix handling order in scheduler CS
authorChristian König <christian.koenig@amd.com>
Fri, 13 Nov 2015 12:04:50 +0000 (13:04 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2015 16:05:59 +0000 (11:05 -0500)
commitf9bee22088f62f76c6f91093f14e776a6a21f1f9
tree14a6e0a63c5a24f3940843a5f66aacda8838343d
parentb9135bc6e54f91ade35be3b6216737f46e9ba03e
drm/amdgpu: fix handling order in scheduler CS

We need to clear parser.ibs and num_ibs before amd_sched_fence_create,
otherwise the IB could be freed twice if fence creates fails.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c