common/octeontx2: fix port ID bound check
authorAnoob Joseph <anoobj@marvell.com>
Sat, 16 May 2020 09:26:53 +0000 (14:56 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Sun, 17 May 2020 14:10:44 +0000 (16:10 +0200)
commit18839177b8af62d2ab912d9b3afa6f0e40f83554
tree6dce96ae75aa64c18aeb880a2e4603e0d66404c5
parentc40b4fcd98933749a41f7b8e9b66368f920038f6
common/octeontx2: fix port ID bound check

Fix out of bounds access.

Coverity issue: 354230, 354231
Fixes: f44e71637755 ("net/octeontx2: add security session operations")
Fixes: 3fe4d07d1678 ("crypto/octeontx2: enable CPT to share QP with ethdev")
Cc: stable@dpdk.org
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
drivers/common/octeontx2/otx2_sec_idev.c