examples/vhost: fix string split error handling
authorCheng Jiang <cheng1.jiang@intel.com>
Wed, 11 Nov 2020 09:08:06 +0000 (09:08 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 13 Nov 2020 18:43:26 +0000 (19:43 +0100)
commit653b5994e86205f5db03b88ffa1ae339cd26905a
tree21d1974bbce04f0b41a2669aac5d1eea16c06604
parent2b7126f5fce80014853a086e12b83b78b6bca6fe
examples/vhost: fix string split error handling

Add checking return value of string split function to fix the
coverity issue.

Coverity issue: 363739
Fixes: 3a04ecb21420 ("examples/vhost: add async vhost args parsing")

Signed-off-by: Cheng Jiang <cheng1.jiang@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost/ioat.c