acrn-kernel/drivers/devfreq
Boris Brezillon 8918025feb PM / devfreq: Fix leak in devfreq_dev_release()
commit 5693d07759 upstream.

srcu_init_notifier_head() allocates resources that need to be released
with a srcu_cleanup_notifier_head() call.

Reported by kmemleak.

Fixes: 0fe3a66410 ("PM / devfreq: Add new DEVFREQ_TRANSITION_NOTIFIER notifier")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-09-13 09:42:59 +02:00
..
event
Kconfig
Makefile
devfreq-event.c
devfreq.c
exynos-bus.c
governor.h
governor_passive.c
governor_performance.c
governor_powersave.c
governor_simpleondemand.c
governor_userspace.c
imx-bus.c
imx8m-ddrc.c
mtk-cci-devfreq.c
rk3399_dmc.c
sun8i-a33-mbus.c
tegra30-devfreq.c