cpuset: add a missing unlock in cpuset_write_resmask()
authorLi Zefan <lizf@cn.fujitsu.com>
Sat, 5 Mar 2011 01:36:21 +0000 (17:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 5 Mar 2011 01:53:38 +0000 (17:53 -0800)
commitb75f38d659e6fc747eda64cb72f3920e29dd44a4
tree308edc066f8c26991323526d499eefa8c773f267
parent2ec38a0359e227c01080dcd670a0368c61ccd9ce
cpuset: add a missing unlock in cpuset_write_resmask()

Don't forget to release cgroup_mutex if alloc_trial_cpuset() fails.

[akpm@linux-foundation.org: avoid multiple return points]
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Miao Xie <miaox@cn.fujitsu.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cpuset.c