test/kni: check init result
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 22 Apr 2021 03:56:29 +0000 (11:56 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 26 Apr 2021 13:33:07 +0000 (15:33 +0200)
commit381dfcf04717f92cfea68e53aac1979c098d35a4
tree8ff2c164044a342d8e126d743f67dc3881629f9f
parent71a7e322475c9a1adf7d404a897194a8b9b973ab
test/kni: check init result

Return value 'rte_kni_init' of a function is not checked. If
it fails, error handling (logging and return) should be done.

This patch fixed it.

Fixes: 0c6bc8ef70ba ("kni: memzone pool for alloc and release")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test/test_kni.c