DPDK patches and discussions
 help / color / mirror / Atom feed
From: <guyk@marvell.com>
To: <thomas@monjalon.net>
Cc: <zhihongx.peng@intel.com>, <guyk@marvell.com>,
	<dovrat@marvell.com>, <dev@dpdk.org>, <stable@dpdk.org>
Subject: [dpdk-dev] [PATCH v1] regex/octeontx2: fix global variable overflow
Date: Sun, 3 Jan 2021 13:01:28 +0200	[thread overview]
Message-ID: <20210103110128.23987-1-guyk@marvell.com> (raw)

From: Guy Kaneti <guyk@marvell.com>

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 <guyk@marvell.com>
---
 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


             reply	other threads:[~2021-01-03 11:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-03 11:01 guyk [this message]
2021-01-07 20:25 ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210103110128.23987-1-guyk@marvell.com \
    --to=guyk@marvell.com \
    --cc=dev@dpdk.org \
    --cc=dovrat@marvell.com \
    --cc=stable@dpdk.org \
    --cc=thomas@monjalon.net \
    --cc=zhihongx.peng@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).