summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/soc
diff options
context:
space:
mode:
authorNishka Dasgupta <nishkadg.linux@gmail.com>2019-08-19 12:57:06 +0530
committerKevin Hilman <khilman@baylibre.com>2019-08-20 14:53:33 -0700
commit49ed86f503be80aac158a567c4cfd31cf1cd181e (patch)
tree2c9c2f68ac5afd2e729703bbe81b91e0eeb0e636 /Documentation/devicetree/bindings/soc
parent623699711a39134a2b2cd6bdba81c5167deceec8 (diff)
soc: amlogic: meson-gx-socinfo: Add of_node_put() before return
The variable np in function meson_gx_socinfo_init takes the return value of of_find_compatible_node, which gets a node but does not put it. If this node is not put it may cause a memory leak. Hence put np after its usefulness has been exhausted. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Fixes: a9daaba2965e ("soc: Add Amlogic SoC Information driver") Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Diffstat (limited to 'Documentation/devicetree/bindings/soc')
0 files changed, 0 insertions, 0 deletions