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 <[email protected]> > Reviewed-by: Florian Fainelli <[email protected]> > Suggested-by: Heiko Stuebner <[email protected]> > Cc: Russell King <[email protected]> > Cc: Heiko Stuebner <[email protected]> > Cc: [email protected] > Cc: [email protected] > Cc: [email protected]
queued for 5.3 (too late for 5.2) Thanks Heiko

