diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2020-11-02 22:34:33 +0800 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2020-12-10 13:23:14 -0600 |
commit | a24723050037303e4008b37f1f8dcc99c58901aa (patch) | |
tree | d585b7e966b08dace7a9ecd894e7e275c07ac2f6 /ipc/compat.c | |
parent | e59aef4edc45133ccb10b8e962cb74dcf1e3240b (diff) | |
download | linux-a24723050037303e4008b37f1f8dcc99c58901aa.tar.bz2 |
remoteproc: q6v5-mss: fix error handling in q6v5_pds_enable
If the pm_runtime_get_sync failed in q6v5_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: 4760a896be88e ("remoteproc: q6v5-mss: Vote for rpmh power domains")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201102143433.143996-1-zhangqilong3@huawei.com
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'ipc/compat.c')
0 files changed, 0 insertions, 0 deletions