diff options
author | Boris Brezillon <boris.brezillon@collabora.com> | 2023-08-09 13:31:08 +0200 |
---|---|---|
committer | Chanwoo Choi <cw00.choi@samsung.com> | 2023-08-10 22:48:16 +0900 |
commit | 5693d077595de721f9ddbf9d37f40e5409707dfe (patch) | |
tree | 20a724998928d877420a44eee89bbf68e3ede742 /rust/macros/paste.rs | |
parent | c46de2fb4ad9e2e5d9041953e87d71ee762fc160 (diff) |
PM / devfreq: Fix leak in devfreq_dev_release()
srcu_init_notifier_head() allocates resources that need to be released
with a srcu_cleanup_notifier_head() call.
Reported by kmemleak.
Fixes: 0fe3a66410a3 ("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>
Diffstat (limited to 'rust/macros/paste.rs')
0 files changed, 0 insertions, 0 deletions