From: Li Zefan Date: Wed, 23 Mar 2011 23:42:47 +0000 (-0700) Subject: cpuset: fix unchecked calls to NODEMASK_ALLOC() X-Git-Tag: v2.6.39-rc1~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee24d3797780eee6ffe581a7b78d27896f9b494a;p=pandora-kernel.git cpuset: fix unchecked calls to NODEMASK_ALLOC() Those functions that use NODEMASK_ALLOC() can't propagate errno to users, but will fail silently. Fix it by using a static nodemask_t variable for each function, and those variables are protected by cgroup_mutex; [akpm@linux-foundation.org: fix comment spelling, strengthen cgroup_lock comment] Signed-off-by: Li Zefan Cc: Paul Menage Acked-by: David Rientjes Cc: Miao Xie Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed