]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm/vmalloc.c: check VM_UNINITIALIZED flag in s_show instead of show_numa_info
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:07 +0000 (16:38 +1000)
commitaa3a33ded5d14dbc21884916fdd7381674704870
tree6879bb86080a98e8794d7dd5169f96e5244e3d34
parent1882e7d755f7f6ee04b2249f3bad1e6543295f0e
mm/vmalloc.c: check VM_UNINITIALIZED flag in s_show instead of show_numa_info

We should check the VM_UNITIALIZED flag in s_show().  If this flag is set,
that said, the vm_struct is not fully initialized.  So it is unnecessary
to try to show the information contained in vm_struct.

We checked this flag in show_numa_info(), but I think it's better
to check it earlier.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c