crypto: hisilicon/qm - fix missing put dfx access
authorWeili Qian <qianweili@huawei.com>
Sat, 27 Aug 2022 10:27:37 +0000 (18:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 10:35:25 +0000 (12:35 +0200)
commit771d8aa02dac7dbd268570e15e1100ca1258801a
tree058bf6a0417181ab1cfc318132cc55d70caa3b29
parent9bf3ec61a246037b0bab1e64dcf70945d3bde5b9
crypto: hisilicon/qm - fix missing put dfx access

[ Upstream commit 5afc904f443de2afd31c4e0686ba178beede86fe ]

In function qm_cmd_write(), if function returns from
branch 'atomic_read(&qm->status.flags) == QM_STOP',
the got dfx access is forgotten to put.

Fixes: 607c191b371d ("crypto: hisilicon - support runtime PM for accelerator device")
Signed-off-by: Weili Qian <qianweili@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/hisilicon/qm.c