Skip to contentSkip to conversation

regex/octeontx2: fix global variable overflow

PATCH Applied [email protected] 2 participants 2 messages Jan 3, 2021 – Jan 7, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 regex/octeontx2: fix global variable overflow

From: Guy Kaneti <[email protected]>

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")
---
 drivers/regex/octeontx2/otx2_regexdev.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/regex/octeontx2/otx2_regexdev.c +3 -0
index 39eed7a20..b6e55853e 100644
@@ -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 = {
Signature · 1 line
2.28.0