linux-stable/arch/arm/mach-exynos
Miaoqian Lin 31d09571bb ARM: exynos: Fix refcount leak in exynos_map_pmu
commit c4c7952504 upstream.

of_find_matching_node() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.
of_node_put() checks null pointer.

Fixes: fce9e5bb25 ("ARM: EXYNOS: Add support for mapping PMU base address via DT")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220523145513.12341-1-linmq006@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-02 16:18:10 +02:00
..
include/mach
common.h
exynos-smc.S
exynos.c ARM: exynos: Fix refcount leak in exynos_map_pmu 2022-07-02 16:18:10 +02:00
firmware.c ARM: exynos: Fix a leaked reference by adding missing of_node_put 2019-05-21 18:50:13 +02:00
headsmp.S
Kconfig ARM: EXYNOS: Remove Exynos4415 arch code (SoC not supported anymore) 2017-01-18 20:48:00 +02:00
Makefile
mcpm-exynos.c Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm 2017-02-28 11:50:53 -08:00
platsmp.c Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm 2017-02-28 11:50:53 -08:00
pm.c ARM: EXYNOS: Fix coupled CPU idle freeze on Exynos4210 2018-04-24 09:36:24 +02:00
sleep.S ARM: align .data section 2017-08-14 16:22:55 +01:00
smc.h
suspend.c ARM: exynos: Fix undefined instruction during Exynos5422 resume 2019-06-15 11:54:59 +02:00