summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdkfd/kfd_debug.c
diff options
context:
space:
mode:
authorJonathan Kim <jonathan.kim@amd.com>2023-06-12 11:42:24 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-06-15 10:46:05 -0400
commit8f7bd7010dd5bca920e9d3c0c040622b2e834b57 (patch)
tree1a5f08b16a13d247fd57e8564a753b8fbc5dfe8d /drivers/gpu/drm/amd/amdkfd/kfd_debug.c
parentfcdb3832a4edece23c043ce97b3a1f7647bec929 (diff)
drm/amdkfd: fix null queue check on debug setting exceptions
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_debug.c')
-rw-r--r--drivers/gpu/drm/amd/amdkfd/kfd_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_debug.c b/drivers/gpu/drm/amd/amdkfd/kfd_debug.c
index cd34e7aaead4..fff3ccc04fa9 100644
--- a/drivers/gpu/drm/amd/amdkfd/kfd_debug.c
+++ b/drivers/gpu/drm/amd/amdkfd/kfd_debug.c
@@ -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;