summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-07-04 09:48:40 +0200
committerClark Williams <williams@redhat.com>2012-03-07 16:15:12 -0600
commit7d35ee39b43095570038063603be6b22b6707126 (patch)
tree0527b61301eb5b858b0df7b260d60e22200c1d34 /mm
parentc2edff90b7b569b087aaf30281093115cdde55e9 (diff)
mm-protect-activate-switch-mm.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'mm')
-rw-r--r--mm/mmu_context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/mmu_context.c b/mm/mmu_context.c
index cf332bc0080a..64ce279a984d 100644
--- a/mm/mmu_context.c
+++ b/mm/mmu_context.c
@@ -26,6 +26,7 @@ void use_mm(struct mm_struct *mm)
struct task_struct *tsk = current;
task_lock(tsk);
+ local_irq_disable_rt();
active_mm = tsk->active_mm;
if (active_mm != mm) {
atomic_inc(&mm->mm_count);
@@ -33,6 +34,7 @@ void use_mm(struct mm_struct *mm)
}
tsk->mm = mm;
switch_mm(active_mm, mm, tsk);
+ local_irq_enable_rt();
task_unlock(tsk);
if (active_mm != mm)