Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc1 /kernel/pid_namespace.c

Filename:/kernel/pid_namespace.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.6.25-git20  2.6.25-git19  2.6.25-git18  2.6.25-git17  2.6.25-git16  2.6.25-git15 
(Following) 2.6.26-rc2  2.6.26-rc3  2.6.26-rc4  2.6.26-rc5  2.6.26-rc6  2.6.26-rc7 

Location
[  2.6.26-rc1
  [  kernel
     o  pid_namespace.c

Patch

diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c
index 6d792b6..98702b4 100644
--- a/kernel/pid_namespace.c
+++ b/kernel/pid_namespace.c
@@ -66,7 +66,7 @@ err_alloc:
    return NULL;
 }
 
-static struct pid_namespace *create_pid_namespace(int level)
+static struct pid_namespace *create_pid_namespace(unsigned int level)
 {
    struct pid_namespace *ns;
    int i;
@@ -92,7 +92,7 @@ static struct pid_namespace *create_pid_namespace(int level)
    atomic_set(&ns->pidmap[0].nr_free, BITS_PER_PAGE - 1);
 
    for (i = 1; i < PIDMAP_ENTRIES; i++) {
-      ns->pidmap[i].page = 0;
+      ns->pidmap[i].page = NULL;
       atomic_set(&ns->pidmap[i].nr_free, BITS_PER_PAGE);
    }
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.