test/timer: check memzone allocation
authorMin Hu (Connor) <humin29@huawei.com>
Tue, 4 May 2021 01:07:49 +0000 (09:07 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 14:52:20 +0000 (16:52 +0200)
commitfb9b862e7c0ddee29df36feb8dd0cbcd2762db25
tree7b2e304634af5216729d0a1144d57c41e18d453e
parent80aa15c4dff24e7a3b549f8dca37c16ae7220920
test/timer: check memzone allocation

Segmentation fault may occur without checking if memzone
reserves succeed or not.

Fixes: 50247fe03fe0 ("test/timer: exercise new APIs in secondary process")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
app/test/test_timer_secondary.c