From 26d37d18830a34129afaab84c73a7eddeb7b0afa Mon Sep 17 00:00:00 2001 From: Sapan Bhatia Date: Fri, 29 Feb 2008 17:56:29 +0000 Subject: [PATCH 1/1] --- linux-2.6-594-new_ns_pid.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6-594-new_ns_pid.patch b/linux-2.6-594-new_ns_pid.patch index c5caa8b66..9d69f2a1b 100644 --- a/linux-2.6-594-new_ns_pid.patch +++ b/linux-2.6-594-new_ns_pid.patch @@ -14,11 +14,11 @@ diff -Nurb linux-2.6.22-593/net/core/net-sysfs.c linux-2.6.22-594/net/core/net-s +{ + struct task_struct *tsk; + int err; -+ struct net *net; ++ struct net *net=NULL; + /* Look up the network namespace */ + err = -ESRCH; + rcu_read_lock(); -+ tsk = find_task_by_real_pid(new_ns_pid); ++ tsk = find_task_by_pid(new_ns_pid); + if (tsk) { + task_lock(tsk); + if (tsk->nsproxy) { -- 2.43.0