]> git.hungrycats.org Git - linux/commitdiff
[PATCH] uml: restrict tlb flushing
authorJeff Dike <jdike@addtoit.com>
Fri, 17 Sep 2004 05:13:30 +0000 (22:13 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 17 Sep 2004 05:13:30 +0000 (22:13 -0700)
One of UML's tlb flushing routines was ignoring the address range passed in by
its callers.  This patch fixes that.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/skas/tlb.c

index ed3d6bcd5a4a05e9543566a8ea69603d3e65e722..02e3e06bb03313b99b3aa1a10c7df57c5f79bef9 100644 (file)
@@ -77,7 +77,7 @@ void flush_tlb_kernel_range_skas(unsigned long start, unsigned long end)
        int updated = 0, err;
 
        mm = &init_mm;
-       for(addr = start_vm; addr < end_vm;){
+       for(addr = start; addr < end;){
                pgd = pgd_offset(mm, addr);
                pmd = pmd_offset(pgd, addr);
                if(pmd_present(*pmd)){