powerpc/pseries/iommu: Add of_node_put() before break
authorWan Jiabing <wanjiabing@vivo.com>
Thu, 14 Oct 2021 07:56:04 +0000 (03:56 -0400)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 22 Oct 2021 04:22:02 +0000 (15:22 +1100)
commit915b368f6968122fcab31fd6441ed4ba7cc7574c
treefb19c33c520c5a0f4d85bb75fb0e6e632516c2cc
parent4f703e7faa67a116016c4678fc88b507c12670c9
powerpc/pseries/iommu: Add of_node_put() before break

Fix following coccicheck warning:

./arch/powerpc/platforms/pseries/iommu.c:924:1-28: WARNING: Function
for_each_node_with_property should have of_node_put() before break

Early exits from for_each_node_with_property should decrement the
node reference counter.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Reviewed-by: Leonardo Bras <leobras.c@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211014075624.16344-1-wanjiabing@vivo.com
arch/powerpc/platforms/pseries/iommu.c