From: Adam Dybkowski Date: Fri, 24 Jul 2020 09:40:10 +0000 (+0200) Subject: common/qat: fix uninitialized variable X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c800c2e07f9644ee5473fffe30f2a07d97bb399b;p=dpdk.git 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 --- 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;