X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fkthread.c;h=bd1b9ea024e1238cb230c159c426f3a4f0c8981e;hb=9c106c119ebedf624fbd682fd2a4d52e3c8c1a67;hp=ac72eea48339cc672cea19962a95e246f87abb83;hpb=9781db7b345b5dfe93787aaaf310c861db7c1ede;p=linux-2.6 diff --git a/kernel/kthread.c b/kernel/kthread.c index ac72eea483..bd1b9ea024 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -98,7 +98,7 @@ static void create_kthread(struct kthread_create_info *create) struct sched_param param = { .sched_priority = 0 }; wait_for_completion(&create->started); read_lock(&tasklist_lock); - create->result = find_task_by_pid(pid); + create->result = find_task_by_pid_ns(pid, &init_pid_ns); read_unlock(&tasklist_lock); /* * root may have changed our (kthreadd's) priority or CPU mask.