summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong Zhao <yong.zhao@amd.com>2018-01-02 13:10:49 -0500
committerOded Gabbay <oded.gabbay@gmail.com>2018-01-02 13:10:49 -0500
commit9e8272240bee42ebafa9d4994c1d65916a761f5d (patch)
tree80c790a408702b8a0d02d3e46978a5d7f35eaa1f
parent9be712ef4612268c28b9f1e2d850d3ceab06ef66 (diff)
downloadlinux-9e8272240bee42ebafa9d4994c1d65916a761f5d.tar.gz
linux-9e8272240bee42ebafa9d4994c1d65916a761f5d.tar.bz2
linux-9e8272240bee42ebafa9d4994c1d65916a761f5d.zip
drm/amdkfd: Fix return value 0 when execute_queues_cpsch fails
Signed-off-by: Yong Zhao <yong.zhao@amd.com> Reviewed-by: Oak Zeng <oak.zeng@amd.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c2
1 files changed, 1 insertions, 1 deletions
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: