crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Fri, 13 Nov 2020 13:17:28 +0000 (21:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:17 +0000 (11:53 +0100)
commit3cf33a4686c4c7572ef8db3d04b09ccf1ec938ef
treefd09c7141e1c59add30ad4946df2c261f9ec3dc8
parent2ec7b49a1f39047c90e2b65df3b0b69ffd13cfac
crypto: omap-aes - Fix PM disable depth imbalance in omap_aes_probe

[ Upstream commit ff8107200367f4abe0e5bce66a245e8d0f2d229e ]

The pm_runtime_enable will increase power disable depth.
Thus a pairing decrement is needed on the error handling
path to keep it balanced according to context.

Fixes: f7b2b5dd6a62a ("crypto: omap-aes - add error check for pm_runtime_get_sync")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/omap-aes.c