Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43087
b: refs/heads/master
c: b0bfece
h: refs/heads/master
i:
  43085: d8179af
  43083: d8686e7
  43079: 9aaff87
  43071: bfe9453
v: v3
  • Loading branch information
Jan Beulich authored and Andi Kleen committed Dec 7, 2006
1 parent a56df3e commit ec3b426
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a457324229db34d3bcb0b67360130c287289401
refs/heads/master: b0bfece40b1988aa8e3d910938691dce7859d82d
7 changes: 5 additions & 2 deletions trunk/arch/i386/mm/pgtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,11 @@ static void set_pte_pfn(unsigned long vaddr, unsigned long pfn, pgprot_t flags)
return;
}
pte = pte_offset_kernel(pmd, vaddr);
/* <pfn,flags> stored as-is, to permit clearing entries */
set_pte(pte, pfn_pte(pfn, flags));
if (pgprot_val(flags))
/* <pfn,flags> stored as-is, to permit clearing entries */
set_pte(pte, pfn_pte(pfn, flags));
else
pte_clear(&init_mm, vaddr, pte);

/*
* It's enough to flush this one mapping.
Expand Down

0 comments on commit ec3b426

Please sign in to comment.