From: Yong Zhao Date: Tue, 2 Jan 2018 18:10:49 +0000 (-0500) Subject: drm/amdkfd: Fix return value 0 when execute_queues_cpsch fails X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9e8272240bee42ebafa9d4994c1d65916a761f5d;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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: