crypto: hisilicon/qm - fix incorrect return value of hisi_qm_resume()
authorWeili Qian <qianweili@huawei.com>
Sat, 4 Dec 2021 10:43:01 +0000 (18:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:35 +0000 (11:03 +0100)
commit8b2b88054961fbad4f82545e6100af336280bdba
tree21eca862d47ee6c78bd0ebff20be5b245d8a0d66
parent5367147cb4f8c707d81eb84502cb4817c6779390
crypto: hisilicon/qm - fix incorrect return value of hisi_qm_resume()

[ Upstream commit 3f9dd4c802b96626e869b2d29c8e401dabadd23e ]

When hisi_qm_resume() returns 0, it indicates that the device has started
successfully.  If the device fails to start, hisi_qm_resume() needs to
return the actual error code to the caller instead of 0.

Fixes: d7ea53395b72 ("crypto: hisilicon - add runtime PM ops")
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