]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/44x: Add of_node_put() when break out from for_each
authorLiang He <windhl@126.com>
Fri, 1 Jul 2022 13:31:26 +0000 (21:31 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:28 +0000 (17:30 +1000)
commitddaecbdd04d22382c5edf4df690b492f2f03697e
tree512a4351bb834c49c3f08ba15d44c2df781f2654
parentfdb6bdb874aa90d80fe4bd4c2a9184992f22a222
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
arch/powerpc/platforms/44x/ppc476.c