diff options
Diffstat (limited to 'mm/mmu_context.c')
-rw-r--r-- | mm/mmu_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mmu_context.c b/mm/mmu_context.c index 6f4d27c5bb32..daf67bb02b4a 100644 --- a/mm/mmu_context.c +++ b/mm/mmu_context.c | |||
@@ -25,7 +25,7 @@ void use_mm(struct mm_struct *mm) | |||
25 | task_lock(tsk); | 25 | task_lock(tsk); |
26 | active_mm = tsk->active_mm; | 26 | active_mm = tsk->active_mm; |
27 | if (active_mm != mm) { | 27 | if (active_mm != mm) { |
28 | atomic_inc(&mm->mm_count); | 28 | mmgrab(mm); |
29 | tsk->active_mm = mm; | 29 | tsk->active_mm = mm; |
30 | } | 30 | } |
31 | tsk->mm = mm; | 31 | tsk->mm = mm; |