+3
−1
Loading
stable inclusion from stable-v6.6.76 commit 7ec98ebb38dc612f4692d1041db072f72da30832 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBW08Q Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7ec98ebb38dc612f4692d1041db072f72da30832 -------------------------------- [ Upstream commit 1d38eb7f7b26261a0b642f6e0923269c7c000a97 ] _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: 3466ea2c ("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> (cherry picked from commit 7ec98ebb38dc612f4692d1041db072f72da30832) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>