Skip to content

Commit 8b2b880

Browse files
Weili Qiangregkh
authored andcommitted
crypto: hisilicon/qm - fix incorrect return value of hisi_qm_resume()
[ Upstream commit 3f9dd4c ] 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: d7ea533 ("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>
1 parent 5367147 commit 8b2b880

File tree

1 file changed

+1
-1
lines changed
  • drivers/crypto/hisilicon

1 file changed

+1
-1
lines changed

drivers/crypto/hisilicon/qm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5986,7 +5986,7 @@ int hisi_qm_resume(struct device *dev)
59865986
if (ret)
59875987
pci_err(pdev, "failed to start qm(%d)\n", ret);
59885988

5989-
return 0;
5989+
return ret;
59905990
}
59915991
EXPORT_SYMBOL_GPL(hisi_qm_resume);
59925992

0 commit comments

Comments
 (0)