mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 23:34:05 +08:00
49ed86f503
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
meson-canvas.c | ||
meson-clk-measure.c | ||
meson-gx-pwrc-vpu.c | ||
meson-gx-socinfo.c | ||
meson-mx-socinfo.c |