Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc36abf3 authored by Paolo 'Blaisorblade' Giarrusso's avatar Paolo 'Blaisorblade' Giarrusso Committed by Linus Torvalds
Browse files

[PATCH] uml: fix condition in tlb flush



Avoid setting w = 0 twice.  Spotted this (trivial) thing which is needed for
another patch.

Signed-off-by: default avatarPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 546fe1cb
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -193,11 +193,11 @@ void fix_range_common(struct mm_struct *mm, unsigned long start_addr,
                r = pte_read(*npte);
                w = pte_write(*npte);
                x = pte_exec(*npte);
                if(!pte_dirty(*npte))
                        w = 0;
		if (!pte_young(*npte)) {
			r = 0;
			w = 0;
		} else if (!pte_dirty(*npte)) {
			w = 0;
		}
                if(force || pte_newpage(*npte)){
                        if(pte_present(*npte))