eal: fix service core list parsing
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 5 May 2021 04:10:07 +0000 (12:10 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 May 2021 21:19:23 +0000 (23:19 +0200)
commit97ca1e786b25182199877393978decbed6608a78
tree93c5f3b00728f77ee4f8589fcdf770ec8acb99ed
parent76b49dcbd2cd2b7436fd196e01c04576c4feaa99
eal: fix service core list parsing

This patch adds checking for service core index validity when parsing
service corelist.

Fixes: 7dbd7a6413ef ("service: add -S corelist option")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Harry van Haaren <harry.van.haaren@intel.com>
lib/eal/common/eal_common_options.c