mbox series

[0/3] crypto: sun - fix reference leak

Message ID 20201127094646.121735-1-miaoqinglang@huawei.com
Headers show
Series crypto: sun - fix reference leak | expand

Message

'Qinglang Miao Nov. 27, 2020, 9:46 a.m. UTC
pm_runtime_get_sync will increment pm usage counter even it
failed. Forgetting to putting operation will result in a
reference leak here. 

Use pm_runtime_resume_and_get to fix it.

Qinglang Miao (3):
  crypto: sun4i - fix reference leak in sun4i-ss
  crypto: sun8i - fix reference leak in sun8i-ce
  crypto: sun8i - fix reference leak in sun8i-ss

 drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 2 +-
 drivers/crypto/allwinner/sun4i-ss/sun4i-ss-core.c   | 2 +-
 drivers/crypto/allwinner/sun4i-ss/sun4i-ss-hash.c   | 2 +-
 drivers/crypto/allwinner/sun4i-ss/sun4i-ss-prng.c   | 2 +-
 drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c   | 2 +-
 drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 2 +-
 drivers/crypto/allwinner/sun8i-ss/sun8i-ss-core.c   | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)