From: Dan Carpenter Date: Thu, 11 Nov 2010 22:05:12 +0000 (-0800) Subject: memcg: null dereference on allocation failure X-Git-Tag: v2.6.37-rc2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2e61b8dc99fdb36e0fd176e25365f69afda4ff9;p=pandora-kernel.git memcg: null dereference on allocation failure The original code had a null dereference if alloc_percpu() failed. This was introduced in commit 711d3d2c9bc3 ("memcg: cpu hotplug aware percpu count updates") Signed-off-by: Dan Carpenter Reviewed-by: Balbir Singh Acked-by: KAMEZAWA Hiroyuki Acked-by: Daisuke Nishimura Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed