Skip to content

Commit

Permalink
kernel/pid.c: reenable interrupts when alloc_pid() fails because init…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
ebiederm authored and torvalds committed Feb 12, 2013
1 parent 4ba902b commit 6e66688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/pid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6e66688

Please sign in to comment.