We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b0b67d commit e6c3ea3Copy full SHA for e6c3ea3
tools/acrn-manager/acrn_vm_ops.c
@@ -47,7 +47,7 @@ static int check_dir(const char *path)
47
48
/* List head of all vm */
49
static pthread_mutex_t vmmngr_mutex = PTHREAD_MUTEX_INITIALIZER;
50
-struct vmmngr_list_struct vmmngr_head;
+struct vmmngr_list_struct vmmngr_head = LIST_HEAD_INITIALIZER(vmmngr_head);
51
static unsigned long update_count = 0;
52
53
struct vmmngr_struct *vmmngr_find(const char *name)
0 commit comments