Skip to content

Commit

Permalink
Check info->moved before updating
Browse files Browse the repository at this point in the history
In migrate_irq(), the list will not be changed if info not found.

Signed-off-by: lvgenggeng <lvgenggeng@uniontech.com>
  • Loading branch information
ggvl committed Sep 3, 2024
1 parent 6739dc0 commit 25fa380
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions irqlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,11 @@ void migrate_irq_obj(struct topo_obj *from, struct topo_obj *to, struct irq_info
to_list = to ? &to->interrupts : &rebalance_irq_list;

migrate_irq(from_list, to_list, info);
/*
* only update list after info found
*/
if (!info->moved)
return;

if (from) {
if (from->slots_left != INT_MAX)
Expand Down

0 comments on commit 25fa380

Please sign in to comment.