Commit 6e3eae38 authored by Keith M. Wesolowski's avatar Keith M. Wesolowski

[SPARC32]: Avoid an oops if thread_info allocation fails

parent 5e2e0e24
...@@ -632,6 +632,7 @@ struct thread_info *srmmu_alloc_thread_info(void) ...@@ -632,6 +632,7 @@ struct thread_info *srmmu_alloc_thread_info(void)
ret = (struct thread_info *)__get_free_pages(GFP_KERNEL, ret = (struct thread_info *)__get_free_pages(GFP_KERNEL,
THREAD_INFO_ORDER); THREAD_INFO_ORDER);
#ifdef CONFIG_DEBUG_STACK_USAGE #ifdef CONFIG_DEBUG_STACK_USAGE
if (ret)
memset(ret, 0, PAGE_SIZE << THREAD_INFO_ORDER); memset(ret, 0, PAGE_SIZE << THREAD_INFO_ORDER);
#endif /* DEBUG_STACK_USAGE */ #endif /* DEBUG_STACK_USAGE */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment