Commit 90367a02 authored by Kai Ye's avatar Kai Ye Committed by Herbert Xu
Browse files

crypto: hisilicon/sec - fix the abnormal exiting process



Because the algs registration process has added a judgment.
So need to add the judgment for the abnormal exiting process.

Signed-off-by: default avatarKai Ye <yekai13@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 598cf425
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1020,6 +1020,7 @@ static int sec_probe(struct pci_dev *pdev, const struct pci_device_id *id)
	return 0;

err_alg_unregister:
	if (qm->qp_num >= ctx_q_num)
		hisi_qm_alg_unregister(qm, &sec_devices);
err_qm_stop:
	sec_debugfs_exit(qm);