]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/85xx: Add missing of_node_get/put() in ge_imp3a_pci_assign_primary()
authorLiang He <windhl@126.com>
Fri, 1 Jul 2022 14:01:19 +0000 (22:01 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:29 +0000 (17:30 +1000)
commit4bd1e700d67ebc3ef6af36ae2a18d90508369b1d
treed8fadb0d80d7f3086d503f81bc7be816135f3324
parentddaecbdd04d22382c5edf4df690b492f2f03697e
powerpc/85xx: Add missing of_node_get/put() in ge_imp3a_pci_assign_primary()

for_each_node_by_type() will automatically increase and decrease
the refcount during the iteration. However, there is a reference
escaped into global 'fsl_pci_primary' and we need to handle it.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220701140119.245435-1-windhl@126.com
arch/powerpc/platforms/85xx/ge_imp3a.c