lkml.org 
[lkml]   [2013]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Odd ENOMEM being returned in 3.8-rcX
On Fri, Feb 08, 2013 at 12:13:09PM -0800, Eric W. Biederman wrote:

For posterity's sake

> From: "Eric W. Biederman" <ebiederm@xmission.com>
> Date: Fri, 8 Feb 2013 12:05:54 -0800
> Subject: [PATCH] pid: unlock_irq when alloc_pid fails because init has
> exited.
>
> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>

Tested-by: Josh Boyer <jwboyer@redhat.com>

> ---
> kernel/pid.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/kernel/pid.c b/kernel/pid.c
> index de9af60..f2c6a68 100644
> --- a/kernel/pid.c
> +++ b/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);
> --
> 1.7.5.4


\
 
 \ /
  Last update: 2013-02-08 23:42    [W:0.124 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site