Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: hisilicon/qm - fix incorrect return value of hisi_qm_resume()

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>

authored by

Weili Qian and committed by
Herbert Xu
3f9dd4c8 fed8f4d5

+1 -1
+1 -1
drivers/crypto/hisilicon/qm.c
··· 6071 6071 if (ret) 6072 6072 pci_err(pdev, "failed to start qm(%d)\n", ret); 6073 6073 6074 - return 0; 6074 + return ret; 6075 6075 } 6076 6076 EXPORT_SYMBOL_GPL(hisi_qm_resume); 6077 6077