]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/vmalloc.c: emit the failure message before return
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Thu, 27 Jun 2013 23:52:27 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:38:06 +0000 (16:38 +1000)
commitdc740236e1a8f1f5aefa4db331a5f032f58c08fa
tree304f635a6299838664bdf61a357bb475460ea8d0
parentacaab48e63fb54b150b4b6660410b471cfff3e56
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>
mm/vmalloc.c