Commit 8b58f261113c442717b9d205ab187e51c3823597

Authored by Oded Gabbay
1 parent e36f014edf

drm/amdkfd: Fix bug in accounting of queues

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
... ... @@ -822,7 +822,7 @@
822 822 * Unconditionally decrement this counter, regardless of the queue's
823 823 * type.
824 824 */
825   - dqm->total_queue_count++;
  825 + dqm->total_queue_count--;
826 826 pr_debug("Total of %d queues are accountable so far\n",
827 827 dqm->total_queue_count);
828 828 mutex_unlock(&dqm->lock);