event/octeontx: fix memory corruption
authorHarman Kalra <hkalra@marvell.com>
Fri, 15 May 2020 11:21:24 +0000 (16:51 +0530)
committerJerin Jacob <jerinj@marvell.com>
Mon, 29 Jun 2020 16:02:55 +0000 (18:02 +0200)
commit50ea81d24c94203f103bd252167a645b47e0257f
tree6d9a71f1b350dab8074807ba6965363f0dfabd37
parent0fc601af3a722ca3ed8bc7cba4c01e377513cdb3
event/octeontx: fix memory corruption

Since PMD enqueues a single event at a time, fixing the issue by
passing 1 rather than nb_events to avoid any out of bound access as
reported by coverity.

Coverity issue: 358447
Fixes: 56a96aa42464 ("event/octeontx: add framework for Rx/Tx offloads")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/event/octeontx/ssovf_worker.c