drm/amdkfd: Handle case of invalid queue type
authorOded Gabbay <oded.gabbay@amd.com>
Thu, 22 Jan 2015 09:40:06 +0000 (11:40 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Thu, 22 Jan 2015 10:43:42 +0000 (12:43 +0200)
commit7113cd652969fe1a59a9560e700000633df6a3e1
tree492f1e552eba19ef7f1faa614f2e97ec389d4a39
parent300dec9578f77111d5fe0c236681b9e25a00cee7
drm/amdkfd: Handle case of invalid queue type

This patch handles a case where amdkfd tries to destroy a queue but the queue
type is invalid.
This case occurs in non-HWS path.

Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c