vhost: fix queue initialization
authorJiayu Hu <jiayu.hu@intel.com>
Tue, 20 Apr 2021 08:57:43 +0000 (04:57 -0400)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 28 Apr 2021 01:24:04 +0000 (03:24 +0200)
commit678a91efa23a50a16cd3c5a2b18a117daef3c840
tree5a98db53617e77cdad0232899c0ab82a92c348ca
parent82fc1ea8e33a76dcd7dc09b50f875e1cfa611f5a
vhost: fix queue initialization

This patch allocates vhost queue by rte_zmalloc() to avoid
undefined values.

Fixes: a277c7159876 ("vhost: refactor code structure")
Cc: stable@dpdk.org
Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Tested-by: Yinan Wang <yinan.wang@intel.com>
lib/vhost/vhost.c