memcontrol: fix potential null deref
authorDan Carpenter <error27@gmail.com>
Tue, 23 Mar 2010 20:35:12 +0000 (13:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Mar 2010 23:31:19 +0000 (16:31 -0700)
commite7bbcdf3747e3919c31cfa87853c69d178bce548
tree42493b615337a170f3a019fc41dd90c4d4d9b342
parent9d34706f42f9b8c15185423d9af98d37ba21d011
memcontrol: fix potential null deref

There was a potential null deref introduced in c62b1a3b31b5 ("memcg: use
generic percpu instead of private implementation").

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c