summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-02-12 22:46:23 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-12 23:34:00 +0100
commit6e6668845fe593414a938b7726d6359b5570ac5a (patch)
tree9cd88fc22e8f5eb8250fbd27466b526f57f8a3d4 /kernel
parentmemcg: fix kmemcg registration for late caches (diff)
downloadlinux-6e6668845fe593414a938b7726d6359b5570ac5a.tar.xz
linux-6e6668845fe593414a938b7726d6359b5570ac5a.zip
kernel/pid.c: reenable interrupts when alloc_pid() fails because init has exited
We're forgetting to reenable local interrupts on an error path. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Reported-by: Josh Boyer <jwboyer@redhat.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/pid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/pid.c b/kernel/pid.c
index de9af600006f..f2c6a6825098 100644
--- a/kernel/pid.c
+++ b/kernel/pid.c
@@ -331,7 +331,7 @@ out:
return pid;
out_unlock:
- spin_unlock(&pidmap_lock);
+ spin_unlock_irq(&pidmap_lock);
out_free:
while (++i <= ns->level)
free_pidmap(pid->numbers + i);