Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f5decbf3 authored by Kyle Piefer's avatar Kyle Piefer
Browse files

msm: kgsl: Only call dev_pm_opp_put on a valid OPP



If dev_pm_opp_find_freq_floor or dev_pm_opp_find_freq_ceil
cannot find a frequency that meets the criteria, they
will return an error instead of a valid pointer. Calling
dev_pm_opp_put on this error will lead to a page fault.
Skip calling dev_pm_opp_put in the error case.

CRs-Fixed: 2318681
Change-Id: I89a0a4a9bf67311ae5cf0f03d394876fa068ae85
Signed-off-by: default avatarKyle Piefer <kpiefer@codeaurora.org>
parent f6f026ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment