ia64/linux-2.6.18-xen.hg

changeset 606:f23e94e1c335

xen/i386: fix ordering in pte_free_kernel()

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jul 18 11:25:56 2008 +0100 (2008-07-18)
parents 2d2436c48e43
children 2c80783731a2
files include/asm-i386/mach-xen/asm/pgalloc.h
line diff
     1.1 --- a/include/asm-i386/mach-xen/asm/pgalloc.h	Fri Jul 18 11:25:07 2008 +0100
     1.2 +++ b/include/asm-i386/mach-xen/asm/pgalloc.h	Fri Jul 18 11:25:56 2008 +0100
     1.3 @@ -36,8 +36,8 @@ extern struct page *pte_alloc_one(struct
     1.4  
     1.5  static inline void pte_free_kernel(pte_t *pte)
     1.6  {
     1.7 +	make_lowmem_page_writable(pte, XENFEAT_writable_page_tables);
     1.8  	free_page((unsigned long)pte);
     1.9 -	make_lowmem_page_writable(pte, XENFEAT_writable_page_tables);
    1.10  }
    1.11  
    1.12  extern void pte_free(struct page *pte);