From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 58DFA42B3A for ; Thu, 18 May 2023 12:05:14 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9037E42D33; Thu, 18 May 2023 12:05:13 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 085144014F; Thu, 18 May 2023 12:05:10 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34I965da024724; Thu, 18 May 2023 03:05:10 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=o+cw0XEBwnSED+7a4r9yCX0Nk1jPr2Tdp3rmYBCuwzo=; b=J2U5EVXX/H2YiRZtawyHGfKcZYK/T1QKUS+tEoTC2KvMwEpcYfm92KpzeE67d+IQa/KP cpun4lCLCVcyKAcUAkKsgA/Hp02XgMQAosPviAQ8ILF2XBHjCEqDk1MvHScajtTofQHX CTEs07lE43FMptrJOz5sUO+CJINzBWq/ko7rfnwqF0wUxhQy0noMpfMA9vqXjcSGWNuc 90JVWe7myUhCJxOyIY14UbQncPCoICJ6iOBQEFjOWR+VCtSh18H8ceJwF5Uk63PrYKIY Dj3thu8zpHmvpIeo8UFrVJspJx+Noj+/DpIaRPO7Zu44j56eX7QAj4Khx0f2SDJ8SI2m og== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3qmyexbkcx-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 18 May 2023 03:05:10 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Thu, 18 May 2023 03:05:02 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Thu, 18 May 2023 03:05:02 -0700 Received: from satheeshpaullabpc.. (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 8A7A73F709E; Thu, 18 May 2023 03:05:00 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul , Subject: [dpdk-dev] [PATCH 2/2] common/cnxk: fix uninitialized pointer read Date: Thu, 18 May 2023 15:34:52 +0530 Message-ID: <20230518100452.2190793-2-psatheesh@marvell.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230518100452.2190793-1-psatheesh@marvell.com> References: <20230518100452.2190793-1-psatheesh@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: -1WfEpA1fDxwsGF4ydMkXAxxYPZWUCC9 X-Proofpoint-ORIG-GUID: -1WfEpA1fDxwsGF4ydMkXAxxYPZWUCC9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-18_07,2023-05-17_02,2023-02-09_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org From: Satheesh Paul Fix uninitialized pointer read reported in coverity scan. Coverity issue: 375811 Fixes: 84d2ea9d4fb3 ("common/cnxk: support custom pre L2 header parsing as raw") Cc: stable@dpdk.org Signed-off-by: Satheesh Paul Reviewed-by: Kiran Kumar K --- drivers/common/cnxk/roc_npc_parse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/common/cnxk/roc_npc_parse.c b/drivers/common/cnxk/roc_npc_parse.c index f746b9cb6d..571fdb36fc 100644 --- a/drivers/common/cnxk/roc_npc_parse.c +++ b/drivers/common/cnxk/roc_npc_parse.c @@ -97,6 +97,7 @@ npc_parse_pre_l2(struct npc_parse_state *pst) (const struct roc_npc_flow_item_raw *)pst->pattern->mask, &info, raw_spec_buf, raw_mask_buf); + info.def_mask = NULL; info.hw_mask = &hw_mask; npc_get_hw_supp_mask(pst, &info, lid, lt); -- 2.39.2