]> 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)
commitef09f6947e591206ff2a4d378ab02af843946a4e
tree14a6e0a63c5a24f3940843a5f66aacda8838343d
parentb6bda6e90732316005f3735974b4f4eaf2727fc1
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