(no commit message)
authorSapan Bhatia <sapanb@cs.princeton.edu>
Fri, 29 Feb 2008 17:56:29 +0000 (17:56 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Fri, 29 Feb 2008 17:56:29 +0000 (17:56 +0000)
linux-2.6-594-new_ns_pid.patch

index c5caa8b..9d69f2a 100644 (file)
@@ -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) {