]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci_dn: Add missing of_node_put()
authorLiang He <windhl@126.com>
Fri, 1 Jul 2022 13:17:50 +0000 (21:17 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Sep 2022 07:30:25 +0000 (17:30 +1000)
commitfdb6bdb874aa90d80fe4bd4c2a9184992f22a222
treea3d90a34d67284cfa6afce050fa04aec4852a000
parent657a99c9dbc24ef7f093eccadb7aef42f4b717c8
powerpc/pci_dn: Add missing of_node_put()

In pci_add_device_node_info(), use of_node_put() to drop the reference
to 'parent' returned by of_get_parent() to keep refcount balance.

Fixes: d60b7ad61872 ("powerpc/pci: Refactor pci_dn")
Co-authored-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Link: https://lore.kernel.org/r/20220701131750.240170-1-windhl@126.com
arch/powerpc/kernel/pci_dn.c