[v1] regex/octeontx2: fix global variable overflow

Message ID 20210103110128.23987-1-guyk@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series [v1] regex/octeontx2: fix global variable overflow |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-testing success Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS

Commit Message

Guy Kaneti Jan. 3, 2021, 11:01 a.m. UTC
  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(+)
  

Comments

Thomas Monjalon Jan. 7, 2021, 8:25 p.m. UTC | #1
03/01/2021 12:01, guyk@marvell.com:
> 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>

Applied, thanks
  

Patch

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 = {