diff options
Diffstat (limited to 'arch/um/kernel/skas/mmu.c')
-rw-r--r-- | arch/um/kernel/skas/mmu.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/um/kernel/skas/mmu.c b/arch/um/kernel/skas/mmu.c index 677871f1b37c..c5c9885a8297 100644 --- a/arch/um/kernel/skas/mmu.c +++ b/arch/um/kernel/skas/mmu.c | |||
@@ -78,7 +78,7 @@ int init_new_context_skas(struct task_struct *task, struct mm_struct *mm) | |||
78 | struct mmu_context_skas *from_mm = NULL; | 78 | struct mmu_context_skas *from_mm = NULL; |
79 | struct mmu_context_skas *to_mm = &mm->context.skas; | 79 | struct mmu_context_skas *to_mm = &mm->context.skas; |
80 | unsigned long stack = 0; | 80 | unsigned long stack = 0; |
81 | int from_fd, ret = -ENOMEM; | 81 | int ret = -ENOMEM; |
82 | 82 | ||
83 | if(skas_needs_stub){ | 83 | if(skas_needs_stub){ |
84 | stack = get_zeroed_page(GFP_KERNEL); | 84 | stack = get_zeroed_page(GFP_KERNEL); |
@@ -108,11 +108,7 @@ int init_new_context_skas(struct task_struct *task, struct mm_struct *mm) | |||
108 | from_mm = ¤t->mm->context.skas; | 108 | from_mm = ¤t->mm->context.skas; |
109 | 109 | ||
110 | if(proc_mm){ | 110 | if(proc_mm){ |
111 | if(from_mm) | 111 | ret = new_mm(stack); |
112 | from_fd = from_mm->id.u.mm_fd; | ||
113 | else from_fd = -1; | ||
114 | |||
115 | ret = new_mm(from_fd, stack); | ||
116 | if(ret < 0){ | 112 | if(ret < 0){ |
117 | printk("init_new_context_skas - new_mm failed, " | 113 | printk("init_new_context_skas - new_mm failed, " |
118 | "errno = %d\n", ret); | 114 | "errno = %d\n", ret); |