projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
598cf42
)
crypto: hisilicon/sec - fix the abnormal exiting process
author
Kai Ye
<yekai13@huawei.com>
Fri, 13 Aug 2021 07:41:01 +0000
(15:41 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Sat, 21 Aug 2021 07:44:57 +0000
(15:44 +0800)
Because the algs registration process has added a judgment.
So need to add the judgment for the abnormal exiting process.
Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_main.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/hisilicon/sec2/sec_main.c
b/drivers/crypto/hisilicon/sec2/sec_main.c
index
db4dbcf
..
45a1ddd
100644
(file)
--- a/
drivers/crypto/hisilicon/sec2/sec_main.c
+++ b/
drivers/crypto/hisilicon/sec2/sec_main.c
@@
-1020,7
+1020,8
@@
static int sec_probe(struct pci_dev *pdev, const struct pci_device_id *id)
return 0;
err_alg_unregister:
- hisi_qm_alg_unregister(qm, &sec_devices);
+ if (qm->qp_num >= ctx_q_num)
+ hisi_qm_alg_unregister(qm, &sec_devices);
err_qm_stop:
sec_debugfs_exit(qm);
hisi_qm_stop(qm, QM_NORMAL);