mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-23 22:34:21 +08:00
powerpc/44x: Add of_node_put() when break out from for_each
In ppc47x_init_irq(), we need to call of_node_put() when there is a break during the iteration of for_each_node_with_property() which will automatically increase and decrease the refcount. Signed-off-by: Liang He <windhl@126.com> [mpe: mpic_alloc() takes its own reference] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220701133126.243102-1-windhl@126.com
This commit is contained in:
parent
110a1fcb6c
commit
9d86f09195
@ -140,6 +140,8 @@ static void __init ppc47x_init_irq(void)
|
||||
ppc_md.get_irq = mpic_get_irq;
|
||||
} else
|
||||
panic("Unrecognized top level interrupt controller");
|
||||
|
||||
of_node_put(np);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
|
Loading…
Reference in New Issue
Block a user