summaryrefslogtreecommitdiff
path: root/tools/virtio/vringh_test.c
diff options
context:
space:
mode:
authorEugenio Pérez <eperezma@redhat.com>2020-04-18 13:22:17 +0300
committerMichael S. Tsirkin <mst@redhat.com>2020-06-22 19:34:22 +0300
commitcb91909e48a4809261ef4e967464e2009b214f06 (patch)
tree876b6f1d4541820c3fc866fae5e198189cc94f4a /tools/virtio/vringh_test.c
parent1d8bf5c3a3a1b90c39ccbafb3aa63ffc5196b142 (diff)
downloadlinux-cb91909e48a4809261ef4e967464e2009b214f06.tar.xz
tools/virtio: Use tools/include/list.h instead of stubs
It should not make any significant difference but reduce stub code. Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Link: https://lore.kernel.org/r/20200418102217.32327-9-eperezma@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio/vringh_test.c')
-rw-r--r--tools/virtio/vringh_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virtio/vringh_test.c b/tools/virtio/vringh_test.c
index 293653463303..fa87b58bd5fa 100644
--- a/tools/virtio/vringh_test.c
+++ b/tools/virtio/vringh_test.c
@@ -307,6 +307,7 @@ static int parallel_test(u64 features,
close(to_host[0]);
gvdev.vdev.features = features;
+ INIT_LIST_HEAD(&gvdev.vdev.vqs);
gvdev.to_host_fd = to_host[1];
gvdev.notifies = 0;
@@ -453,6 +454,7 @@ int main(int argc, char *argv[])
getrange = getrange_iov;
vdev.features = 0;
+ INIT_LIST_HEAD(&vdev.vqs);
while (argv[1]) {
if (strcmp(argv[1], "--indirect") == 0)