Commit 9d965f4e authored by Joe Hattori's avatar Joe Hattori Committed by Greg Kroah-Hartman
Browse files

OPP: OF: Fix an OF node leak in _opp_add_static_v2()



[ Upstream commit 1d38eb7f ]

_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: default avatarJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 2802ed4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment