net/virtio-user: fix uninitialized reply-ack variable
authorChenbo Xia <chenbo.xia@intel.com>
Tue, 14 Jul 2020 11:03:05 +0000 (11:03 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jul 2020 16:21:21 +0000 (18:21 +0200)
commitf4c1456a921afa804aceeb09bade9bb6b3cd60e1
treef4a82904c74277d23874f84df35b890c39cf2455
parenta15255b4cbad8b6c4f4488dac3392f75a67f5901
net/virtio-user: fix uninitialized reply-ack variable

This patch fixes an issue that uninitialized has_reply_ack
is used for setting message flags.

Coverity issue: 360834
Fixes: c60208dd6384 ("net/virtio-user: support reply-ack")

Signed-off-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Adrian Moreno <amorenoz@redhat.com>
drivers/net/virtio/virtio_user/vhost_user.c