Skip to content

Commit 2fcb4cc

Browse files
Sihang Chenherbertx
Sihang Chen
authored andcommitted
crypto: hisilicon/zip - fix the uninitalized 'curr_qm_qp_num'
The 'qm->curr_qm_qp_num' is not initialized, which will result in failure to write the current_q file. Signed-off-by: Sihang Chen <[email protected]> Signed-off-by: Yang Shen <[email protected]> Reviewed-by: Zhou Wang <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 42856f0 commit 2fcb4cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/crypto/hisilicon/zip/zip_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,7 @@ static int hisi_zip_qm_init(struct hisi_qm *qm, struct pci_dev *pdev)
760760
if (qm->fun_type == QM_HW_PF) {
761761
qm->qp_base = HZIP_PF_DEF_Q_BASE;
762762
qm->qp_num = pf_q_num;
763+
qm->debug.curr_qm_qp_num = pf_q_num;
763764
qm->qm_list = &zip_devices;
764765
} else if (qm->fun_type == QM_HW_VF && qm->ver == QM_HW_V1) {
765766
/*

0 commit comments

Comments
 (0)