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>
/*
* Handle debugger faulting in for debugee.
*/
- if (current->active_mm != vma->vm_mm)
+ if (vma && current->active_mm != vma->vm_mm)
return;
local_irq_save(flags);
/*
* Handle debugger faulting in for debugee.
*/
- if (current->active_mm != vma->vm_mm)
+ if (vma && current->active_mm != vma->vm_mm)
return;
local_irq_save(flags);
/*
* Handle debugger faulting in for debugee.
*/
- if (current->active_mm != vma->vm_mm)
+ if (vma && current->active_mm != vma->vm_mm)
return;
local_irq_save(flags);