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

This patch fixs coverity issue by adding initialization step before
using temporary virtio header.

Coverity issue: 366181
Fixes: fb3815cc614d ("vhost: handle virtually non-contiguous buffers in Rx-mrg")
Cc: stable@dpdk.org
Signed-off-by: Marvin Liu <yong.liu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c