Am Freitag, 26. April 2019, 09:08:08 CEST schrieb Wen Yang: > 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-rockchip/pm.c:269:2-8: ERROR: missing of_node_put; acquired a > node pointer with refcount incremented on line 259, but without a > corresponding object release within this function. > ./arch/arm/mach-rockchip/pm.c:275:2-8: ERROR: missing of_node_put; acquired a > node pointer with refcount incremented on line 259, but without a > corresponding object release within this function > ./arch/arm/mach-rockchip/platsmp.c:281:2-8: ERROR: missing of_node_put; > acquired a node pointer with refcount incremented on line 272, but without a > corresponding object release within this function. > ./arch/arm/mach-rockchip/platsmp.c:285:2-8: ERROR: missing of_node_put; > acquired a node pointer with refcount incremented on line 272, but without a > corresponding object release within this function. > ./arch/arm/mach-rockchip/platsmp.c:289:3-9: ERROR: missing of_node_put; > acquired a node pointer with refcount incremented on line 272, but without a > corresponding object release within this function. > ./arch/arm/mach-rockchip/platsmp.c:303:3-9: ERROR: missing of_node_put; > acquired a node pointer with refcount incremented on line 294, but without a > corresponding object release within this function. > > Signed-off-by: Wen Yang <wen.yan...@zte.com.cn> > Reviewed-by: Florian Fainelli <f.faine...@gmail.com> > Suggested-by: Heiko Stuebner <he...@sntech.de> > Cc: Russell King <li...@armlinux.org.uk> > Cc: Heiko Stuebner <he...@sntech.de> > Cc: linux-arm-ker...@lists.infradead.org > Cc: linux-rockc...@lists.infradead.org > Cc: linux-kernel@vger.kernel.org
queued for 5.3 (too late for 5.2) Thanks Heiko