diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-07-29 09:06:58 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-07-29 09:06:58 -0400 |
commit | 3ed6e129390fb872c3b7e05a232e5d380fbdfb48 (patch) | |
tree | c6cf9564b735f85d0a37f64e239767ce86e40b36 /arch/sh/mm/tlb-pteaex.c | |
parent | 9cef7492696a416663b4edb953a4eade8517ebeb (diff) |
sh: Handle a NULL vma in __update_tlb() for the fast-path.
The TLB miss fast-path presently calls in to update_mmu_cache() to
set up the entry, and does so with a NULL vma. Check for vma validity
in the __update_tlb() ptrace checks.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/tlb-pteaex.c')
-rw-r--r-- | arch/sh/mm/tlb-pteaex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/tlb-pteaex.c b/arch/sh/mm/tlb-pteaex.c index 9aabd313cede..409b7c2b4b9d 100644 --- a/arch/sh/mm/tlb-pteaex.c +++ b/arch/sh/mm/tlb-pteaex.c | |||
@@ -23,7 +23,7 @@ void __update_tlb(struct vm_area_struct *vma, unsigned long address, pte_t pte) | |||
23 | /* | 23 | /* |
24 | * Handle debugger faulting in for debugee. | 24 | * Handle debugger faulting in for debugee. |
25 | */ | 25 | */ |
26 | if (current->active_mm != vma->vm_mm) | 26 | if (vma && current->active_mm != vma->vm_mm) |
27 | return; | 27 | return; |
28 | 28 | ||
29 | local_irq_save(flags); | 29 | local_irq_save(flags); |