Commit b82225f3 authored by Wanpeng Li's avatar Wanpeng Li Committed by Linus Torvalds
Browse files

revert mm/vmalloc.c: emit the failure message before return

Don't warn twice in __vmalloc_area_node and __vmalloc_node_range if
__vmalloc_area_node allocation failure.  This patch reverts commit

 ("mm/vmalloc.c: emit the failure message before return").
Signed-off-by: default avatarWanpeng Li <>
Reviewed-by: default avatarZhang Yanfei <>
Cc: Joonsoo Kim <>
Cc: KOSAKI Motohiro <>
Cc: Mitsuo Hayasaka <>
Cc: David Rientjes <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent af12346c
......@@ -1635,7 +1635,7 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,
addr = __vmalloc_area_node(area, gfp_mask, prot, node);
if (!addr)
goto fail;
return NULL;
* In this function, newly allocated vm_struct has VM_UNINITIALIZED
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