]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/iommu: Add missing of_node_put in iommu_init_early_dart
authorPeng Wu <wupeng58@huawei.com>
Mon, 25 Apr 2022 08:12:45 +0000 (08:12 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 22 May 2022 05:58:31 +0000 (15:58 +1000)
commit3dbcb02759cc0e4cbe560e22ef333fbdcdc9bb55
tree413a72ba5a201e71ca8e422ca2c9eeb42a4f0644
parent9dc2c2b2fe5588db1f92b37eb8ae8a54126f1ae0
powerpc/iommu: Add missing of_node_put in iommu_init_early_dart

The device_node pointer is returned by of_find_compatible_node
with refcount incremented. We should use of_node_put() to avoid
the refcount leak.

Signed-off-by: Peng Wu <wupeng58@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220425081245.21705-1-wupeng58@huawei.com
arch/powerpc/sysdev/dart_iommu.c