[v1] regex/octeontx2: fix global variable overflow
Checks
Commit Message
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
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
@@ -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 = {