]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fsl_pci: Remove of_node_put() when reference escaped out
authorLiang He <windhl@126.com>
Wed, 20 Jul 2022 12:45:57 +0000 (20:45 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:29 +0000 (17:30 +1000)
commit661b648a59985465e58156c7e7de661c686e292e
tree66e37b6be6ad85d65487a2f4bd927d498a1488ac
parent4bd1e700d67ebc3ef6af36ae2a18d90508369b1d
powerpc/fsl_pci: Remove of_node_put() when reference escaped out

In fsl_pci_assign_primary(), we should remove the of_node_put()
when breaking out of the for_each_matching_node() as the 'np'
is escaped out by global 'fsl_pci_primary'.

Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220720124557.1256243-1-windhl@126.com
arch/powerpc/sysdev/fsl_pci.c