Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85768
b: refs/heads/master
c: af96e44
h: refs/heads/master
v: v3
  • Loading branch information
Thomas Gleixner committed Feb 18, 2008
1 parent 202e156 commit e2139dd
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: 31eedd823c1bf3650c450346a0d0c39431034eb9
refs/heads/master: af96e4438a4b34a257f5318a296e0b9e182e7ab9
7 changes: 5 additions & 2 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ static int change_page_attr_set_clr(unsigned long addr, int numpages,
pgprot_t mask_set, pgprot_t mask_clr)
{
struct cpa_data cpa;
int ret, cache;
int ret, cache, checkalias;

/*
* Check, if we are requested to change a not supported
Expand All @@ -695,7 +695,10 @@ static int change_page_attr_set_clr(unsigned long addr, int numpages,
cpa.mask_clr = mask_clr;
cpa.flushtlb = 0;

ret = __change_page_attr_set_clr(&cpa, 1);
/* No alias checking for _NX bit modifications */
checkalias = (pgprot_val(mask_set) | pgprot_val(mask_clr)) != _PAGE_NX;

ret = __change_page_attr_set_clr(&cpa, checkalias);

/*
* Check whether we really changed something:
Expand Down

0 comments on commit e2139dd

Please sign in to comment.