summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mvebu/Kconfig
diff options
context:
space:
mode:
authorWen Yang <wen.yang99@zte.com.cn>2019-03-05 12:32:55 +0100
committerGregory CLEMENT <gregory.clement@bootlin.com>2019-04-30 09:05:39 +0200
commit8f11b5ab441d3a80de7f079598a548350d3eed0b (patch)
treef4d5adcecfa2b6f41d926c85e05b4c028672d4d3 /arch/arm/mach-mvebu/Kconfig
parentARM: mvebu: kirkwood: remove error message when retrieving mac address (diff)
downloadlinux-8f11b5ab441d3a80de7f079598a548350d3eed0b.tar.xz
linux-8f11b5ab441d3a80de7f079598a548350d3eed0b.zip
ARM: mvebu: fix a leaked reference by adding missing of_node_put
The call to of_get_next_child returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. Detected by coccinelle with the following warnings: ./arch/arm/mach-mvebu/pm-board.c:135:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 88, but without a corresponding object release within this functio Signed-off-by: Wen Yang <wen.yang99@zte.com.cn> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Andrew Lunn <andrew@lunn.ch> Cc: Gregory Clement <gregory.clement@bootlin.com> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> Cc: Russell King <linux@armlinux.org.uk> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Diffstat (limited to 'arch/arm/mach-mvebu/Kconfig')
0 files changed, 0 insertions, 0 deletions