From: Qi Tao taoqi10@huawei.com
After the memory is applied for, the memory must be initialized before being written.
Signed-off-by: Qi Tao taoqi10@huawei.com --- v1/drv/hisi_qm_udrv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/v1/drv/hisi_qm_udrv.c b/v1/drv/hisi_qm_udrv.c index 6cbcdf5..0ca38d2 100644 --- a/v1/drv/hisi_qm_udrv.c +++ b/v1/drv/hisi_qm_udrv.c @@ -458,8 +458,8 @@ static int qm_init_queue_info(struct wd_queue *q) struct wcrypto_paras *priv = &q->capa.priv; struct q_info *qinfo = q->qinfo; struct qm_queue_info *info = qinfo->priv; - struct hisi_qp_info qp_info; - struct hisi_qp_ctx qp_ctx; + struct hisi_qp_info qp_info = {0}; + struct hisi_qp_ctx qp_ctx = {0}; int ret;
info->sq_tail_index = 0;