examples/vhost: check memory table query
authorChenbo Xia <chenbo.xia@intel.com>
Fri, 19 Feb 2021 02:40:11 +0000 (10:40 +0800)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 31 Mar 2021 06:46:32 +0000 (08:46 +0200)
commit1739f814258cf7f4e25d55710918fa0ecc4d828e
treed594a8ff01b71843ba2995240a192d2743f55faa
parent629d75653bc584a2927a87566bf00beea661f91b
examples/vhost: check memory table query

This patch fixes unchecked return value for rte_vhost_get_mem_table(),
which is reported by coverity.

Coverity issue: 364233
Fixes: ca059fa5e290 ("examples/vhost: demonstrate the new generic APIs")
Cc: stable@dpdk.org
Signed-off-by: Chenbo Xia <chenbo.xia@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost/virtio_net.c