From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E14BBA09E4; Sun, 3 Jan 2021 12:02:39 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6201416069A; Sun, 3 Jan 2021 12:02:39 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id F2110160697; Sun, 3 Jan 2021 12:02:37 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 103Auslc014019; Sun, 3 Jan 2021 03:02:37 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=6hgEt5BG7CulZeIHg8gZVGBwDldcevgFb/2pTIU8f5w=; b=RxAxZcS6IdkRQ9fY4471Z8hWDMoyFxoDyCpLKOoRT//U5oQCgC+6aRSo2V/8BK5j7LP6 8Bx3MPMf/WNJvAgBVbJTTI97Ds3VHk2OrHMd4o12r09C+z/FwymQ92SG5v4LQll+ssCq +dNib/y7rGBYdPFuk1NSk+Z7UQRe4mNf+YOMmxNDt2ePcKqNBw31HC4OUTUxSD2cEIEW yWAfumLKV0U6hQsai/+hlvf5qkD9Q+/F+7ts3WqdpCq3pIu2put2E6X4gjBuHuniqZXw Q9Q73zdQsSbH+enhPuPiIfLaSXzeWJ8TIj2alTLIE73V5mVus49bkoslgCD47fU74/KT Uw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 35tq2u9c4x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 03 Jan 2021 03:02:37 -0800 Received: from SC-EXCH01.marvell.com (10.93.176.81) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 3 Jan 2021 03:02:35 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 3 Jan 2021 03:02:35 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 3 Jan 2021 03:02:35 -0800 Received: from vvenus124.il.marvell.com (unknown [10.5.116.64]) by maili.marvell.com (Postfix) with ESMTP id A9BEF3F7040; Sun, 3 Jan 2021 03:02:33 -0800 (PST) From: To: CC: , , , , Date: Sun, 3 Jan 2021 13:01:28 +0200 Message-ID: <20210103110128.23987-1-guyk@marvell.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737 definitions=2021-01-03_02:2020-12-31, 2021-01-02 signatures=0 Subject: [dpdk-dev] [PATCH v1] regex/octeontx2: fix global variable overflow X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" From: Guy Kaneti Sentinel was missing from pci_id_ree_table[] array initialization which caused it to overflow. Bugzilla ID: 603 Fixes: 4cd1c5fd9 ("regex/octeontx2: introduce REE driver") Cc: stable@dpdk.org Signed-off-by: Guy Kaneti --- drivers/regex/octeontx2/otx2_regexdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/regex/octeontx2/otx2_regexdev.c b/drivers/regex/octeontx2/otx2_regexdev.c index 39eed7a20..b6e55853e 100644 --- a/drivers/regex/octeontx2/otx2_regexdev.c +++ b/drivers/regex/octeontx2/otx2_regexdev.c @@ -988,6 +988,9 @@ static struct rte_pci_id pci_id_ree_table[] = { RTE_PCI_DEVICE(PCI_VENDOR_ID_CAVIUM, PCI_DEVID_OCTEONTX2_RVU_REE_PF) }, + { + .vendor_id = 0, + } }; static struct rte_pci_driver otx2_regexdev_pmd = { -- 2.28.0