From 9e8272240bee42ebafa9d4994c1d65916a761f5d Mon Sep 17 00:00:00 2001 From: Yong Zhao Date: Tue, 2 Jan 2018 13:10:49 -0500 Subject: [PATCH] drm/amdkfd: Fix return value 0 when execute_queues_cpsch fails Signed-off-by: Yong Zhao Reviewed-by: Oak Zeng Signed-off-by: Oded Gabbay --- drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c index d0693fd8cbf8..acfb12100e17 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c @@ -1033,7 +1033,7 @@ static int destroy_queue_cpsch(struct device_queue_manager *dqm, mutex_unlock(&dqm->lock); - return 0; + return retval; failed: failed_try_destroy_debugged_queue: -- 2.30.2