ARM: at91: pm: Add of_node_put() before goto
authorWan Jiabing <wanjiabing@vivo.com>
Thu, 14 Oct 2021 08:45:55 +0000 (04:45 -0400)
committerNicolas Ferre <nicolas.ferre@microchip.com>
Wed, 8 Dec 2021 13:01:16 +0000 (14:01 +0100)
commitbb29e4091079dd7ef5bd488bd7625965cdfd2c12
treec4d4e6ada9e9de87b643bda9249a0220e4f9ba1d
parentfa55b7dcdc43c1aa1ba12bca9d2dd4318c2a0dbf
ARM: at91: pm: Add of_node_put() before goto

Fix following coccicheck warning:
./arch/arm/mach-at91/pm.c:643:1-33: WARNING: Function
for_each_matching_node_and_match should have of_node_put() before goto

Early exits from for_each_matching_node_and_match should decrement the
node reference counter.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20211014084555.21422-1-wanjiabing@vivo.com
arch/arm/mach-at91/pm.c