kernel: init: mem_domain structure is initialized for dummy thread.
For the dummy thread, contents in the mem_domain structure
is insignificant hence setting it to NULL.
Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
diff --git a/kernel/init.c b/kernel/init.c
index ee2f981..63b32ca 100644
--- a/kernel/init.c
+++ b/kernel/init.c
@@ -259,6 +259,9 @@
dummy_thread->stack_info.start = 0;
dummy_thread->stack_info.size = 0;
#endif
+#ifdef CONFIG_USERSPACE
+ dummy_thread->mem_domain_info.mem_domain = 0;
+#endif
#endif
/* _kernel.ready_q is all zeroes */