From c800c2e07f9644ee5473fffe30f2a07d97bb399b Mon Sep 17 00:00:00 2001 From: Adam Dybkowski Date: Fri, 24 Jul 2020 11:40:10 +0200 Subject: [PATCH] common/qat: fix uninitialized variable This patch fixes the uninitialized variable bug in QAT PMD. Fixes: 9f27a860dc16 ("crypto/qat: move generic qp function to qp file") Cc: stable@dpdk.org Signed-off-by: Adam Dybkowski Acked-by: Fiona Trahe --- drivers/common/qat/qat_qp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/qat/qat_qp.c b/drivers/common/qat/qat_qp.c index 567d55fd99..32d7401053 100644 --- a/drivers/common/qat/qat_qp.c +++ b/drivers/common/qat/qat_qp.c @@ -581,7 +581,7 @@ qat_enqueue_op_burst(void *qp, void **ops, uint16_t nb_ops) register struct qat_queue *queue; struct qat_qp *tmp_qp = (struct qat_qp *)qp; register uint32_t nb_ops_sent = 0; - register int ret; + register int ret = -1; uint16_t nb_ops_possible = nb_ops; register uint8_t *base_addr; register uint32_t tail; -- 2.20.1