[PATCH] powerpc/pseries/iommu: Add of_node_put() before break
Michael Ellerman
patch-notifications at ellerman.id.au
Tue Nov 2 21:11:33 AEDT 2021
On Thu, 14 Oct 2021 03:56:04 -0400, Wan Jiabing wrote:
> 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.
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/pseries/iommu: Add of_node_put() before break
https://git.kernel.org/powerpc/c/915b368f6968122fcab31fd6441ed4ba7cc7574c
cheers
More information about the Linuxppc-dev
mailing list