mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
opp: Free static OPPs on errors while adding them
[ Upstream commitba00331921] The static OPPs aren't getting freed properly, if errors occur while adding them. Fix that by calling _put_opp_list_kref() and putting their reference on failures. Fixes:11e1a16482("opp: Don't decrement uninitialized list_kref") Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
49d88337ac
commit
06389f62ef
1 changed files with 13 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue