Commit a14f13f8 authored by Manfred Spraul's avatar Manfred Spraul Committed by James Simmons

[PATCH] oneliner race fix for ldt updates

Problem: if another CPU is using lazy-TLB, the LDT flushing won't flush
the other CPU's LDT entry.

Fix: use active_mm instead of mm for the flush IPI.
parent 22a6d651
......@@ -20,10 +20,10 @@
#include <asm/desc.h>
#ifdef CONFIG_SMP /* avoids "defined but not used" warnig */
static void flush_ldt(void *mm)
static void flush_ldt(void *null)
{
if (current->mm)
load_LDT(&current->mm->context);
if (current->active_mm)
load_LDT(&current->active_mm->context);
}
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment