diff options
author | dinghao.liu@zju.edu.cn <dinghao.liu@zju.edu.cn> | 2020-08-21 16:15:13 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-08-28 16:58:30 +1000 |
commit | b7b57a5643c2ae45afe6aa5e73363b553cacd14b (patch) | |
tree | be9469cdda9188c9c10889b9b187ef5f9cb917fc /drivers/crypto/stm32 | |
parent | crypto: mediatek - Fix endianness bugs and sparse warnings (diff) | |
download | linux-dev-b7b57a5643c2ae45afe6aa5e73363b553cacd14b.tar.xz linux-dev-b7b57a5643c2ae45afe6aa5e73363b553cacd14b.zip |
crypto: ccree - fix runtime PM imbalance on error
pm_runtime_get_sync() increments the runtime PM usage counter
even when it returns an error code. However, users of cc_pm_get(),
a direct wrapper of pm_runtime_get_sync(), assume that PM usage
counter will not change on error. Thus a pairing decrement is needed
on the error handling path to keep the counter balanced.
Fixes: 8c7849a30255c ("crypto: ccree - simplify Runtime PM handling")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/stm32')
0 files changed, 0 insertions, 0 deletions