Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eventdev: fix possible array underflow/overflow
If the number of interrupts is zero, then indexing an array by "nb_rx_intr - 1" will cause an out-of-bounds write Fix this by putting in a check that nb_rx_intr > 0 before doing the array write. Coverity issue: 448870 Fixes: 3810ae4 ("eventdev: add interrupt driven queues to Rx adapter") Cc: [email protected] Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Jerin Jacob <[email protected]>
- Loading branch information