UML - SKAS: handle flexible mmap layout From: Paolo 'Blaisorblade' Giarrusso When creating a new mm_struct by opening /proc/mm, call arch_pick_mmap_layout as well, like is done in the rest of the kernel when creating a new mm_struct. This is needed since 2.6.9 to support the flexible-mmap-layout patch by Ingo Molnar. Signed-off-by: Paolo 'Blaisorblade' Giarrusso Index: linux-2.6.14/mm/proc_mm.c =================================================================== --- linux-2.6.14.orig/mm/proc_mm.c 2005-10-29 05:50:11.000000000 +0200 +++ linux-2.6.14/mm/proc_mm.c 2005-10-29 05:50:14.000000000 +0200 @@ -125,6 +125,7 @@ goto out_mem; init_new_empty_context(mm); + arch_pick_mmap_layout(mm); spin_lock(&mmlist_lock); list_add(&mm->mmlist, ¤t->mm->mmlist);