* Andrew Morton <a...@linux-foundation.org> wrote:

> On Thu, 11 Jun 2015 16:07:10 +0200 Ingo Molnar <mi...@kernel.org> wrote:
> 
> > --- a/kernel/fork.c
> > +++ b/kernel/fork.c
> > @@ -1592,6 +1592,22 @@ static struct task_struct *copy_process(unsigned 
> > long clone_flags,
> >     syscall_tracepoint_update(p);
> >     write_unlock_irq(&tasklist_lock);
> >  
> > +   /*
> > +    * If we have a new PGD then initialize it:
> > +    *
> > +    * This method is called after a task has been made visible
> > +    * on the task list already.
> > +    *
> > +    * Architectures that manage per task kernel pagetables
> > +    * might use this callback to initialize them after they
> > +    * are already visible to new updates.
> > +    *
> > +    * NOTE: any user-space parts of the PGD are already initialized
> > +    *       and must not be clobbered.
> > +    */
> > +   if (p->mm != current->mm)
> > +           arch_pgd_init_late(p->mm, p->mm->pgd);
> 
> Couldn't this be arch_pgd_init_late(p->mm) or arch_pgd_init_late(p)?

Indeed - fixed.

Thanks,

        Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to