From: Eric W. Biederman Date: Tue, 12 Feb 2013 21:46:23 +0000 (-0800) Subject: kernel/pid.c: reenable interrupts when alloc_pid() fails because init has exited X-Git-Tag: Ubuntu-5.0.0-8.9~14373 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=6e6668845fe593414a938b7726d6359b5570ac5a;p=mirror_ubuntu-disco-kernel.git 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" Reported-by: Josh Boyer Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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);