ia64/xen-unstable

changeset 6078:95d2bbf6a273

PAE PMDs must be made writable before freeing.
author kaf24@firebug.cl.cam.ac.uk
date Tue Aug 09 13:08:25 2005 +0000 (2005-08-09)
parents 356b14d5ffc8
children f40c6650152e
files linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c	Tue Aug 09 13:04:54 2005 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/xen/i386/mm/pgtable.c	Tue Aug 09 13:08:25 2005 +0000
     1.3 @@ -359,6 +359,7 @@ void pgd_free(pgd_t *pgd)
     1.4  	if (PTRS_PER_PMD > 1) {
     1.5  		for (i = 0; i < USER_PTRS_PER_PGD; ++i) {
     1.6  			pmd_t *pmd = (void *)__va(pgd_val(pgd[i])-1);
     1.7 +			make_page_writable(pmd);
     1.8  			kmem_cache_free(pmd_cache, pmd);
     1.9  		}
    1.10  		if (!HAVE_SHARED_KERNEL_PMD) {