crypto: sun8i-ce - Fix runtime PM imbalance in sun8i_ce_cipher_init
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Mon, 22 Jun 2020 02:40:08 +0000 (10:40 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 3 Jul 2020 04:18:33 +0000 (14:18 +1000)
commit5c3a8a661e1bd9d7063485ac2d2ccb512c447129
treebd843be69c58ea95babff992fb35866a3ee936a0
parentf94907085d5f73e87578130deeef4c744ca60ab1
crypto: sun8i-ce - Fix runtime PM imbalance in sun8i_ce_cipher_init

pm_runtime_get_sync() increments the runtime PM usage counter even
the call returns an error code. Thus a corresponding decrement is
needed on the error handling path to keep the counter balanced.

Fix this by adding the missed function call.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c