OpenVZ Forum


Home » Mailing lists » Devel » Re: [patch 06/20] [Network namespace] Move the nsproxy NULL affection
Re: [patch 06/20] [Network namespace] Move the nsproxy NULL affection [message #8936] Mon, 11 December 2006 15:08
Cedric Le Goater is currently offline  Cedric Le Goater
Messages: 443
Registered: February 2006
Senior Member
dlezcano@fr.ibm.com wrote:
> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
>
> ---
>
> kernel/nsproxy.c | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
> Index: 2.6.19-rc6-mm2/kernel/nsproxy.c
> ============================================================ =======
> --- 2.6.19-rc6-mm2.orig/kernel/nsproxy.c
> +++ 2.6.19-rc6-mm2/kernel/nsproxy.c
> @@ -54,10 +54,10 @@ void exit_task_namespaces(struct task_st
> {
> struct nsproxy *ns = p->nsproxy;
> if (ns) {
> + put_nsproxy(ns);
> task_lock(p);
> p->nsproxy = NULL;
> task_unlock(p);
> - put_nsproxy(ns);
> }
> }

this is a no no.

C.
 
Read Message
Previous Topic: [patch 00/20] [Network namespace] Introduction
Next Topic: Re: [patch 06/20] [Network namespace] Move the nsproxy NULL affection
Goto Forum:
  


Current Time: Tue Sep 09 20:47:08 GMT 2025

Total time taken to generate the page: 0.09115 seconds