Skip to contentSkip to conversation

linux/i386: fix ordering in pte_free_kernel()

PATCH New Jan Beulich 1 participant 1 message Jul 18, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux/i386: fix ordering in pte_free_kernel()

Almost as usual, written and tested on 2.6.16.60 and made apply to the 2.6.18 tree without further testing.

include/asm-i386/mach-xen/asm/pgalloc.h +1 -1
Index: sle10sp2-2008-07-16/include/asm-i386/mach-xen/asm/pgalloc.h
===================================================================
@@ -36,8 +36,8 @@ extern struct page *pte_alloc_one(struct
 
 static inline void pte_free_kernel(pte_t *pte)
 {
-	free_page((unsigned long)pte);
 	make_lowmem_page_writable(pte, XENFEAT_writable_page_tables);
+	free_page((unsigned long)pte);
 }
 
 extern void pte_free(struct page *pte);