linux/drivers/opp
Joe Hattori 9d965f4eda OPP: OF: Fix an OF node leak in _opp_add_static_v2()
[ Upstream commit 1d38eb7f7b ]

_opp_add_static_v2() leaks the obtained OF node reference when
_of_opp_alloc_required_opps() fails. Add an of_node_put() call in the
error path.

Fixes: 3466ea2cd6 ("OPP: Don't drop opp->np reference while it is still in use")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-02-21 13:49:02 +01:00
..
core.c OPP: fix dev_pm_opp_find_bw_*() when bandwidth table not initialized 2025-02-21 13:48:57 +01:00
cpu.c OPP: Use consistent names for OPP table instances 2022-07-08 11:27:50 +05:30
debugfs.c OPP: debugfs: Fix warning around icc_get_name() 2024-03-26 18:20:42 -04:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
of.c OPP: OF: Fix an OF node leak in _opp_add_static_v2() 2025-02-21 13:49:02 +01:00
opp.h OPP: Don't drop opp->np reference while it is still in use 2022-07-19 11:07:02 +05:30
ti-opp-supply.c OPP: ti: Fix ti_opp_supply_probe wrong return values 2024-08-03 08:48:58 +02:00