diff --git a/executer/kernel/mcctrl/syscall.c b/executer/kernel/mcctrl/syscall.c index 6b8dc8bc..a9c605f7 100644 --- a/executer/kernel/mcctrl/syscall.c +++ b/executer/kernel/mcctrl/syscall.c @@ -348,6 +348,7 @@ retry_alloc: printk("WARNING: coudln't alloc wait queue head, retrying..\n"); goto retry_alloc; } + memset(wqhln, 0, sizeof(struct wait_queue_head_list_node)); /* Prepare per-thread wait queue head */ wqhln->task = current; @@ -527,6 +528,7 @@ retry_alloc: printk("WARNING: coudln't alloc wait queue head, retrying..\n"); goto retry_alloc; } + memset(wqhln, 0, sizeof(struct wait_queue_head_list_node)); /* Prepare per-thread wait queue head */ wqhln->task = current;