aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 0d8694f015c1..0fd592799d58 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
@@ -822,7 +822,7 @@ static void destroy_kernel_queue_cpsch(struct device_queue_manager *dqm,
822 * Unconditionally decrement this counter, regardless of the queue's 822 * Unconditionally decrement this counter, regardless of the queue's
823 * type. 823 * type.
824 */ 824 */
825 dqm->total_queue_count++; 825 dqm->total_queue_count--;
826 pr_debug("Total of %d queues are accountable so far\n", 826 pr_debug("Total of %d queues are accountable so far\n",
827 dqm->total_queue_count); 827 dqm->total_queue_count);
828 mutex_unlock(&dqm->lock); 828 mutex_unlock(&dqm->lock);