Nishka Dasgupta 49ed86f503 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>
2019-08-20 14:53:33 -07:00
..
2019-06-25 05:43:16 -07:00
2019-06-17 04:38:06 -07:00
2018-01-04 17:01:53 +01:00
2019-07-19 17:13:56 -07:00
2019-07-19 17:13:56 -07:00
2019-07-19 17:13:56 -07:00
2019-07-19 17:13:56 -07:00
2019-07-19 17:19:24 -07:00
2019-07-01 15:26:09 -07:00