aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/asm/mmu_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/include/asm/mmu_context.h')
-rw-r--r--arch/um/include/asm/mmu_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/include/asm/mmu_context.h b/arch/um/include/asm/mmu_context.h
index 9f4b4bb78120..00cefd33afdd 100644
--- a/arch/um/include/asm/mmu_context.h
+++ b/arch/um/include/asm/mmu_context.h
@@ -52,7 +52,7 @@ static inline void activate_mm(struct mm_struct *old, struct mm_struct *new)
52 * when the new ->mm is used for the first time. 52 * when the new ->mm is used for the first time.
53 */ 53 */
54 __switch_mm(&new->context.id); 54 __switch_mm(&new->context.id);
55 down_write(&new->mmap_sem); 55 down_write_nested(&new->mmap_sem, 1);
56 uml_setup_stubs(new); 56 uml_setup_stubs(new);
57 up_write(&new->mmap_sem); 57 up_write(&new->mmap_sem);
58} 58}