vhost: fix initialization of async temporary header
authorMarvin Liu <yong.liu@intel.com>
Wed, 7 Apr 2021 03:25:16 +0000 (11:25 +0800)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 7 Apr 2021 06:41:30 +0000 (08:41 +0200)
commit98da5545be5180843e61a4dacdc0612b3ae64da4
tree35b45c00765998edef333ed54b625c4d2a4df8b5
parent5b784a2d80abddd5d554b1eef534e8047b1d2e5a
vhost: fix initialization of async temporary header

This patch fixes coverity issue in async enqueue function by adding
initialization step before using temporary virtio header.

Coverity issue: 366123
Fixes: cd6760da1076 ("vhost: introduce async enqueue for split ring")
Cc: stable@dpdk.org
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/librte_vhost/virtio_net.c