From 86d8b57e37eaea344870ffdf7dd6ead814204096 Mon Sep 17 00:00:00 2001 From: Guy Kaneti Date: Sun, 3 Jan 2021 13:01:28 +0200 Subject: [PATCH] regex/octeontx2: fix PCI table overflow 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 39eed7a20d..b6e55853e9 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.20.1