]> git.baikalelectronics.ru Git - kernel.git/commit
mm/vmalloc.c: emit the failure message before return
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Mon, 8 Jul 2013 22:59:57 +0000 (15:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:21 +0000 (10:33 -0700)
commitd9c33120e5dd54281cd8305aff4ad4fcd7d2f1d5
treeb7e7f11f58f6d8ffacba6c36c09700a2d98632e9
parent352c5c4c941daaf942a9d4be80cccc62201809e9
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 <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmalloc.c