diff options
author | Alex Shi <[email protected]> | 2012-07-20 09:18:23 +0800 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2012-07-20 15:01:48 -0700 |
commit | 7efa1c87963d23cc57ba40c07316d3e28cc75a3a (patch) | |
tree | a76c03fb96d4d804bcc4093b5e8785617564a054 | |
parent | effee4b9b3b0aa5770bcd98de5f672b05b27703c (diff) |
x86/tlb: Fix build warning and crash when building for !SMP
The incompatible parameter of flush_tlb_mm_range cause build warning.
Fix it by correct parameter.
Ingo Molnar found that this could also cause a user space crash.
Reported-by: Tetsuo Handa <[email protected]>
Reported-by: Ingo Molnar <[email protected]>
Signed-off-by: Alex Shi <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: H. Peter Anvin <[email protected]>
-rw-r--r-- | arch/x86/include/asm/tlbflush.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h index b5a27bd77669..74a44333545a 100644 --- a/arch/x86/include/asm/tlbflush.h +++ b/arch/x86/include/asm/tlbflush.h @@ -105,10 +105,10 @@ static inline void flush_tlb_range(struct vm_area_struct *vma, __flush_tlb(); } -static inline void flush_tlb_mm_range(struct vm_area_struct *vma, +static inline void flush_tlb_mm_range(struct mm_struct *mm, unsigned long start, unsigned long end, unsigned long vmflag) { - if (vma->vm_mm == current->active_mm) + if (mm == current->active_mm) __flush_tlb(); } |