libvhost-user: Zero memory allocated for VuVirtqInflightDesc

Use a zero-initialized VuVirtqInflightDesc struct to avoid
that scan-build reports that vq->resubmit_list[0].counter may
be garbage value in vu_check_queue_inflights().

Fixes: 5f9ff1eff ("libvhost-user: Support tracking inflight I/O in
shared memory")
Reported-by: Marc-André Lureau <>
Signed-off-by: Xie Yongji <>
Message-Id: <>
Reviewed-by: Marc-André Lureau <>
Reviewed-by: Michael S. Tsirkin <>
Signed-off-by: Michael S. Tsirkin <>
1 file changed