The last lcore declared in the list is also a valid lcore in the list.
Fixes:
32d7dbf269be ("app/eventdev: fix overflow in lcore list parsing")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
max = idx;
if (min == RTE_MAX_LCORE)
min = idx;
max = idx;
if (min == RTE_MAX_LCORE)
min = idx;
- for (idx = min; idx < max; idx++) {
+ for (idx = min; idx <= max; idx++) {
if (lcores[idx] == 1)
return -E2BIG;
lcores[idx] = 1;
if (lcores[idx] == 1)
return -E2BIG;
lcores[idx] = 1;