diff options
| author | Bruce Richardson <[email protected]> | 2024-11-14 11:55:38 +0000 |
|---|---|---|
| committer | Jerin Jacob <[email protected]> | 2024-11-18 15:30:13 +0530 |
| commit | fa9d8629f800e85054b5c69678c3aeced4866e0f (patch) | |
| tree | f3d9b529ecfa64cadc2798a944c530ce48da1a60 /devtools | |
| parent | 1b77005170b54612560f2e6f99588761a168de38 (diff) | |
eventdev: fix possible array underflow/overflownext-eventdev-for-main
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: 3810ae435783 ("eventdev: add interrupt driven queues to Rx adapter")
Cc: [email protected]
Signed-off-by: Bruce Richardson <[email protected]>
Series-Acked-by: Jerin Jacob <[email protected]>
Diffstat (limited to 'devtools')
0 files changed, 0 insertions, 0 deletions
