drm/amdkfd: fix null queue check on debug setting exceptions
authorJonathan Kim <jonathan.kim@amd.com>
Mon, 12 Jun 2023 15:42:24 +0000 (11:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Jun 2023 14:46:05 +0000 (10:46 -0400)
Null check should be done on queue struct itself and not on the
process queue list node.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_debug.c

index cd34e7aaead490aeb48baeca185f248b28306dda..fff3ccc04fa94f13042e1ddcb69c1ee7c709bc7e 100644 (file)
@@ -1097,7 +1097,7 @@ void kfd_dbg_set_enabled_debug_exception_mask(struct kfd_process *target,
 
        pqm = &target->pqm;
        list_for_each_entry(pqn, &pqm->queues, process_queue_list) {
-               if (!pqn)
+               if (!pqn->q)
                        continue;
 
                found_mask |= pqn->q->properties.exception_status;