Commit 6e666884 authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Linus Torvalds

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: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
Reported-by: default avatarJosh Boyer <jwboyer@redhat.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4ba902b5
......@@ -331,7 +331,7 @@ struct pid *alloc_pid(struct pid_namespace *ns)
return pid;
out_unlock:
spin_unlock(&pidmap_lock);
spin_unlock_irq(&pidmap_lock);
out_free:
while (++i <= ns->level)
free_pidmap(pid->numbers + i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment