event/dlb2: fix array overflow
authorTimothy McDaniel <timothy.mcdaniel@intel.com>
Sat, 2 Jul 2022 16:22:35 +0000 (11:22 -0500)
committerJerin Jacob <jerinj@marvell.com>
Mon, 4 Jul 2022 16:04:52 +0000 (18:04 +0200)
commit897e2aab031bbd2c9a825b99fb08d6cc087a0e93
tree8dce3655d91a9c7d67a16d7957cdd19fb87115c6
parent881d4b4d8587419197815db57b94fc58ee487445
event/dlb2: fix array overflow

This commit fixes a segfault that resulted from reading
beyond the end of the port_cos array. The root cause was using
the DLB num ports define instead of the eventdev num ports define.

Fixes: bec8901bfe9f ("event/dlb2: support ldb port specific COS")
Cc: stable@dpdk.org
Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
drivers/event/dlb2/dlb2_priv.h