]> git.karo-electronics.de Git - karo-tx-linux.git/commit
memcg: do not expose uninitialized mem_cgroup_per_node to world
authorIgor Mammedov <imammedo@redhat.com>
Wed, 5 Oct 2011 00:43:50 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 13 Oct 2011 06:49:57 +0000 (17:49 +1100)
commit93998ad5c1122c00cfa07115b10dd22cfae728db
tree160be77a3fe8728814d7cf041c5dfb853808e94d
parent37310f4d3fa0c0dede412325c5c0831620cbeece
memcg: do not expose uninitialized mem_cgroup_per_node to world

If somebody is touching data too early, it might be easier to diagnose a
problem when dereferencing NULL at mem->info.nodeinfo[node] than trying to
understand why mem_cgroup_per_zone is [un|partly]initialized.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c