mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-04 16:43:40 +01:00
mm/vmalloc.c: emit the failure message before return
Use goto to jump to the fail label to give a failure message before returning NULL. This makes the failure handling in this function consistent. Signed-off-by: Zhang Yanfei <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
1 parent
b8e748b6c3
commit
46c001a275
1 file changed
+1
-1
+1
-1
@@ -1642,7 +1642,7 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,
|
||||
|
||||
addr = __vmalloc_area_node(area, gfp_mask, prot, node, caller);
|
||||
if (!addr)
|
||||
return NULL;
|
||||
goto fail;
|
||||
|
||||
/*
|
||||
* In this function, newly allocated vm_struct has VM_UNLIST flag.
|
||||
|
||||
Reference in new issue
Block a user