tools: acrn-manager: init vmmngr_head with LIST_HEAD_INITIALIZER
To fix the issue that vmmngr_head may be used uninitialized. Tracked-On: #1157 Signed-off-by: Yan, Like <like.yan@intel.com>
This commit is contained in:
parent
7b0b67df72
commit
e6c3ea3b3b
|
@ -47,7 +47,7 @@ static int check_dir(const char *path)
|
|||
|
||||
/* List head of all vm */
|
||||
static pthread_mutex_t vmmngr_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
struct vmmngr_list_struct vmmngr_head;
|
||||
struct vmmngr_list_struct vmmngr_head = LIST_HEAD_INITIALIZER(vmmngr_head);
|
||||
static unsigned long update_count = 0;
|
||||
|
||||
struct vmmngr_struct *vmmngr_find(const char *name)
|
||||
|
|
Loading…
Reference in New Issue