drm/amdkfd: Fix a memory leak in queue creation error handling
authorYong Zhao <Yong.Zhao@amd.com>
Wed, 5 Feb 2020 22:13:54 +0000 (17:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:20:20 +0000 (14:20 -0500)
commit66f28b9a169855367d6e3ef71001969a8bffb19b
treee06f1c5ffe0e15aef66e952514f62dd8fe0a9430
parentb42902f4af8fecd2781f71ad166e8a807edb1053
drm/amdkfd: Fix a memory leak in queue creation error handling

When the queue creation failed, some resources were not freed. Fix it.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c