mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 12:12:16 +00:00
ptdev: bug fix on operating list
Before using a node of list, initialize it. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Reviewed-by: Yakui, Zhao <yakui.zhao@intel.com> Reviewed-by: Chen, Jason Cl <jason.cj.chen@intel.com>
This commit is contained in:
parent
72b2cb1fa7
commit
7ed446e63b
@ -166,6 +166,10 @@ alloc_entry(struct vm *vm, enum ptdev_intr_type type)
|
||||
ASSERT(entry, "alloc memory failed");
|
||||
entry->type = type;
|
||||
entry->vm = vm;
|
||||
|
||||
INIT_LIST_HEAD(&entry->softirq_node);
|
||||
INIT_LIST_HEAD(&entry->entry_node);
|
||||
|
||||
atomic_clear_int(&entry->active, ACTIVE_FLAG);
|
||||
list_add(&entry->entry_node, &ptdev_list);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user