]> git.itanic.dy.fi Git - linux-stable/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)
commitafa6a472a3d2a8dd477b285eeb67b3593546647b
tree66e37b6be6ad85d65487a2f4bd927d498a1488ac
parenta8b89c10e6052027061a447ff7436642310c8f20
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