powerpc/pci_dn: Add missing of_node_put()
stable inclusion from stable-v5.10.150 commit 434db6d17b6bb7638b90387b5606a4c67be12774 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=434db6d17b6bb7638b90387b5606a4c67be12774 -------------------------------- [ Upstream commit 110a1fcb ] 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: cca87d30 ("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 Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Jialin Zhang <zhangjialin11@huawei.com>
Loading
Please sign in to comment