aboutsummaryrefslogtreecommitdiff
path: root/mm/debug.c
diff options
context:
space:
mode:
authorZhang Qilong <zhangqilong3@huawei.com>2020-11-02 22:35:54 +0800
committerBjorn Andersson <bjorn.andersson@linaro.org>2020-12-10 13:23:15 -0600
commitc0a6e5ee1ecfe4c3a5799cfd30820748eff5dfab (patch)
treeb95745a3dee320eb11627b1d0d9553d067569edb /mm/debug.c
parentaa37448f597c09844942da87d042fc6793f989c2 (diff)
remoteproc: qcom: pas: fix error handling in adsp_pds_enable
If the pm_runtime_get_sync failed in adsp_pds_enable when loop (i), The unroll_pd_votes will start from (i - 1), and it will resulted in following problems: 1) pm_runtime_get_sync will increment pm usage counter even it failed. Forgetting to pm_runtime_put_noidle will result in reference leak. 2) Have not reset pds[i] performance state. Then we fix it. Fixes: 17ee2fb4e8567 ("remoteproc: qcom: pas: Vote for active/proxy power domains") Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Link: https://lore.kernel.org/r/20201102143554.144707-1-zhangqilong3@huawei.com Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'mm/debug.c')
0 files changed, 0 insertions, 0 deletions