kernel/tools/virtio/vringh_test.c
.. .. @@ -307,6 +307,8 @@ 307 307 close(to_host[0]); 308 308 309 309 gvdev.vdev.features = features; 310 + INIT_LIST_HEAD(&gvdev.vdev.vqs);311 + spin_lock_init(&gvdev.vdev.vqs_list_lock);310 312 gvdev.to_host_fd = to_host[1]; 311 313 gvdev.notifies = 0; 312 314 .. .. @@ -453,6 +455,8 @@ 453 455 454 456 getrange = getrange_iov; 455 457 vdev.features = 0; 458 + INIT_LIST_HEAD(&vdev.vqs);459 + spin_lock_init(&vdev.vqs_list_lock);456 460 457 461 while (argv[1]) { 458 462 if (strcmp(argv[1], "--indirect") == 0)