Skip to content

Commit

Permalink
process::resume_queues: Fix check of invalid queues
Browse files Browse the repository at this point in the history
Fix the test checking if a queue got marked as invalid by KFD.

Suggested-by: Laurent Morichetti <laurent.morichetti@amd.com>
Change-Id: Iac563c4eda35e1a9d97e6dda462180c4bf287e21
  • Loading branch information
lancesix committed Nov 5, 2024
1 parent bca868f commit 5e22119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ process_t::resume_queues (const std::vector<queue_t *> &queues,
if (mask & os_queue_error_mask)
fatal_error ("failed to resume os_queue_id %d", queue_id);

if (queue_id & os_queue_invalid_mask)
if (mask & os_queue_invalid_mask)
{
auto it = std::find_if (queues.begin (), queues.end (),
[=] (const queue_t *q)
Expand Down

0 comments on commit 5e22119

Please sign in to comment.