From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 82F1CA0518; Fri, 24 Jul 2020 11:40:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 49AB41C010; Fri, 24 Jul 2020 11:40:37 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 7475B1BFE7 for ; Fri, 24 Jul 2020 11:40:35 +0200 (CEST) IronPort-SDR: 0Jtp+SVOZOa0ekiZ25e/LKGhCuQWY7Dt7AdVlLSNKf91+xeNNw7OViwG0fuNM+qC/L43lUvMMI +ffLuioE/p4w== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="151973015" X-IronPort-AV: E=Sophos;i="5.75,390,1589266800"; d="scan'208";a="151973015" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2020 02:40:34 -0700 IronPort-SDR: 4Jc/sq082MzyuqEJXoXaeMOQrbpPdqmeDiaLGr54BHvIACOMYjvzaIUA/ZPHNho7aOyA2L9Tx+ Ce3AWyZWoxCA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,390,1589266800"; d="scan'208";a="320957675" Received: from adamdybx-mobl.ger.corp.intel.com ([10.104.125.71]) by fmsmga002.fm.intel.com with ESMTP; 24 Jul 2020 02:40:32 -0700 From: Adam Dybkowski To: dev@dpdk.org, fiona.trahe@intel.com, akhil.goyal@nxp.com Cc: Adam Dybkowski Date: Fri, 24 Jul 2020 11:40:10 +0200 Message-Id: <20200724094010.1025-1-adamx.dybkowski@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] common/qat: fix uninitialized variable bug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch fixes the uninitialized variable bug in QAT PMD. Fixes: 9f27a860dc16 ("crypto/qat: move generic qp function to qp file") Signed-off-by: Adam Dybkowski --- 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 aacd4ab21..0ee713955 100644 --- a/drivers/common/qat/qat_qp.c +++ b/drivers/common/qat/qat_qp.c @@ -582,7 +582,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.25.1