From: Dan Carpenter Date: Mon, 27 Oct 2014 13:27:02 +0000 (+0300) Subject: cpuset: lock vs unlock typo X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cea74465e27b1306a237087fca2f5f0befcf1daf;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cpuset: lock vs unlock typo This will deadlock instead of unlocking. Fixes: f73eae8d8384 ('cpuset: simplify cpuset_node_allowed API') Signed-off-by: Dan Carpenter Acked-by: Vladimir Davydov Signed-off-by: Tejun Heo --- diff --git a/kernel/cpuset.c b/kernel/cpuset.c index 38f7433c1cd2..4eaa203aa953 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c @@ -1992,7 +1992,7 @@ static int cpuset_css_online(struct cgroup_subsys_state *css) spin_lock_irq(&callback_lock); cs->mems_allowed = parent->mems_allowed; cpumask_copy(cs->cpus_allowed, parent->cpus_allowed); - spin_lock_irq(&callback_lock); + spin_unlock_irq(&callback_lock); out_unlock: mutex_unlock(&cpuset_mutex); return 0;