Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Eric W. Biederman and committed by
Linus Torvalds
6e666884 4ba902b5

+1 -1
+1 -1
kernel/pid.c
··· 331 331 return pid; 332 332 333 333 out_unlock: 334 - spin_unlock(&pidmap_lock); 334 + spin_unlock_irq(&pidmap_lock); 335 335 out_free: 336 336 while (++i <= ns->level) 337 337 free_pidmap(pid->numbers + i);