forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/tools/virtio/vringh_test.c
....@@ -308,6 +308,7 @@
308308
309309 gvdev.vdev.features = features;
310310 INIT_LIST_HEAD(&gvdev.vdev.vqs);
311
+ spin_lock_init(&gvdev.vdev.vqs_list_lock);
311312 gvdev.to_host_fd = to_host[1];
312313 gvdev.notifies = 0;
313314
....@@ -455,6 +456,7 @@
455456 getrange = getrange_iov;
456457 vdev.features = 0;
457458 INIT_LIST_HEAD(&vdev.vqs);
459
+ spin_lock_init(&vdev.vqs_list_lock);
458460
459461 while (argv[1]) {
460462 if (strcmp(argv[1], "--indirect") == 0)