From: "Eric W. Biederman" <[email protected]> Subject: 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" <[email protected]> Reported-by: Josh Boyer <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> --- kernel/pid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN kernel/pid.c~kernel-pidc-reenable-interrupts-when-alloc_pid-fails-because-init-has-exited kernel/pid.c --- a/kernel/pid.c~kernel-pidc-reenable-interrupts-when-alloc_pid-fails-because-init-has-exited +++ a/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); _ -- To unsubscribe from this list: send the line "unsubscribe stable" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
