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>
This commit is contained in:
parent
4ba902b574
commit
6e6668845f
|
@ -331,7 +331,7 @@ out:
|
||||||
return pid;
|
return pid;
|
||||||
|
|
||||||
out_unlock:
|
out_unlock:
|
||||||
spin_unlock(&pidmap_lock);
|
spin_unlock_irq(&pidmap_lock);
|
||||||
out_free:
|
out_free:
|
||||||
while (++i <= ns->level)
|
while (++i <= ns->level)
|
||||||
free_pidmap(pid->numbers + i);
|
free_pidmap(pid->numbers + i);
|
||||||
|
|
Loading…
Reference in New Issue