drm/amdkfd: Fix bug in accounting of queues
authorOded Gabbay <oded.gabbay@amd.com>
Thu, 29 Jan 2015 08:32:25 +0000 (10:32 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Mon, 2 Feb 2015 07:45:24 +0000 (09:45 +0200)
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

index 0d8694f015c1a58a829da1fef863c99a3fba47f5..0fd592799d58dc6fdbd6c37bb5e826ed0f89cf9a 100644 (file)
@@ -822,7 +822,7 @@ static void destroy_kernel_queue_cpsch(struct device_queue_manager *dqm,
         * Unconditionally decrement this counter, regardless of the queue's
         * type.
         */
-       dqm->total_queue_count++;
+       dqm->total_queue_count--;
        pr_debug("Total of %d queues are accountable so far\n",
                        dqm->total_queue_count);
        mutex_unlock(&dqm->lock);