Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 161408
b: refs/heads/master
c: fa526d0
h: refs/heads/master
v: v3
  • Loading branch information
Jack Steiner authored and H. Peter Anvin committed Sep 9, 2009
1 parent b7d802b commit e5a9675
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: a269cca9926faf8e44b340b017be0d884203141b
refs/heads/master: fa526d0d641b5365676a1fb821ce359e217c9b85
8 changes: 7 additions & 1 deletion trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,7 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages,
{
struct cpa_data cpa;
int ret, cache, checkalias;
unsigned long baddr = 0;

/*
* Check, if we are requested to change a not supported
Expand Down Expand Up @@ -853,6 +854,11 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages,
*/
WARN_ON_ONCE(1);
}
/*
* Save address for cache flush. *addr is modified in the call
* to __change_page_attr_set_clr() below.
*/
baddr = *addr;
}

/* Must avoid aliasing mappings in the highmem code */
Expand Down Expand Up @@ -900,7 +906,7 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages,
cpa_flush_array(addr, numpages, cache,
cpa.flags, pages);
} else
cpa_flush_range(*addr, numpages, cache);
cpa_flush_range(baddr, numpages, cache);
} else
cpa_flush_all(cache);

Expand Down

0 comments on commit e5a9675

Please sign in to comment.