]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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>
Fri, 21 Oct 2022 10:38:59 +0000 (12:38 +0200)
commit8ecd63a0ccc0f37f47173fae0147e233f510c30b
treee1460ceef889a6bc28cefc4d3c0da40ea99637fe
parent014f98938145efd32329053ddde7d85a981708c7
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