OSDN Git Service

MIPS: Call find_vma with the mmap_sem held
[uclinux-h8/linux.git] / arch / mips / mm / c-octeon.c
index f41a5c5..05b1d7c 100644 (file)
@@ -137,8 +137,10 @@ static void octeon_flush_cache_sigtramp(unsigned long addr)
 {
        struct vm_area_struct *vma;
 
+       down_read(&current->mm->mmap_sem);
        vma = find_vma(current->mm, addr);
        octeon_flush_icache_all_cores(vma);
+       up_read(&current->mm->mmap_sem);
 }