[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] xen/i386: fix ordering in pte_free_kernel()



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1216376756 -3600
# Node ID f23e94e1c3352acc449d14cc119feec1506d341f
# Parent  2d2436c48e43bb721a2b7a04b49081dd30672d85
xen/i386: fix ordering in pte_free_kernel()

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 include/asm-i386/mach-xen/asm/pgalloc.h |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 2d2436c48e43 -r f23e94e1c335 include/asm-i386/mach-xen/asm/pgalloc.h
--- a/include/asm-i386/mach-xen/asm/pgalloc.h   Fri Jul 18 11:25:07 2008 +0100
+++ b/include/asm-i386/mach-xen/asm/pgalloc.h   Fri Jul 18 11:25:56 2008 +0100
@@ -36,8 +36,8 @@ extern struct page *pte_alloc_one(struct
 
 static inline void pte_free_kernel(pte_t *pte)
 {
+       make_lowmem_page_writable(pte, XENFEAT_writable_page_tables);
        free_page((unsigned long)pte);
-       make_lowmem_page_writable(pte, XENFEAT_writable_page_tables);
 }
 
 extern void pte_free(struct page *pte);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.