aboutsummaryrefslogtreecommitdiffstats
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorWen Yang <[email protected]>2019-03-05 11:34:01 +0000
committerMaxime Ripard <[email protected]>2019-03-18 07:11:12 +0000
commit2b062a0a00ab31192bb12c0d8c1c71458b12bbed (patch)
tree123a2493181bbddeac65ce9ed9bf09581932a44b /lib/memory-notifier-error-inject.c
parentARM: sunxi: fix a leaked reference by adding missing of_node_put (diff)
downloadkernel-2b062a0a00ab31192bb12c0d8c1c71458b12bbed.tar.gz
kernel-2b062a0a00ab31192bb12c0d8c1c71458b12bbed.zip
ARM: sunxi: 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-sunxi/platsmp.c:55:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 46, but without a corresponding object release within this function. ./arch/arm/mach-sunxi/platsmp.c:138:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 129, but without a corresponding object release within this function. Signed-off-by: Wen Yang <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Cc: Russell King <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Maxime Ripard <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions