mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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
46c001a275 ("mm/vmalloc.c: emit the failure message before return").
Signed-off-by: Wanpeng Li <[email protected]>
Reviewed-by: Zhang Yanfei <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Mitsuo Hayasaka <[email protected]>
Cc: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
af12346cda
commit
b82225f3ff
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue