X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fpid_namespace.c;h=98702b4b8851762969d9ddad76505e5739e8166c;hb=e9dd54da0ba494bd86c45bdf574a6fd6ff8f2210;hp=6d792b66d854ff3536e30a1114e35a703be59695;hpb=ab1ecbabb1c7b1599b1eb70c291407c557ea4ef3;p=karo-tx-linux.git diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c index 6d792b66d854..98702b4b8851 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); }