drm/amdgpu: Fix one list corruption when create queue fails
authorxinhui pan <xinhui.pan@amd.com>
Thu, 7 Jul 2022 10:20:00 +0000 (18:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2022 19:55:56 +0000 (15:55 -0400)
commitcc3cb791f19ad0c4f951f38c98aa513b042ab329
tree388b13be90a6f8e978e7806b8fa21627c6f745ac
parent9da2902609f7519c48eda84f953f72fee53f2b71
drm/amdgpu: Fix one list corruption when create queue fails

Queue would be freed when create_queue_cpsch fails
So lets do queue cleanup otherwise various list and memory issues
happen.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c