Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
46c001a2 ("mm/vmalloc.c: emit the failure message before return").

Signed-off-by: default avatarWanpeng Li <liwanp@linux.vnet.ibm.com>
Reviewed-by: default avatarZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Mitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent af12346c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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