app/eventdev: check timer adadpters number
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Thu, 12 Nov 2020 17:43:29 +0000 (23:13 +0530)
committerJerin Jacob <jerinj@marvell.com>
Fri, 13 Nov 2020 08:52:11 +0000 (09:52 +0100)
commit15c19f36f59ed56b87ab4eb192a859bf273dbccc
tree0a7cda5accd34fe5f8f6ad4a1d115e96e92906a0
parentedbebd334aea2778454d00c3caf457b3a3735b99
app/eventdev: check timer adadpters number

Fix SEGFAULT when nb_timer_adapters command line parameter is
set to 0.

Fixes: 98c6292105d4 ("app/eventdev: add options for event timer adapter")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
app/test-eventdev/evt_options.c