Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112531
b: refs/heads/master
c: ab7e792
h: refs/heads/master
i:
  112529: 78ee4f0
  112527: 83e2f88
v: v3
  • Loading branch information
Shaohua Li authored and Ingo Molnar committed Aug 21, 2008
1 parent 14aca7f commit b41e2c9
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: bd07928c0f9c3dbe53baf28eae4de4c579772c4c
refs/heads/master: ab7e79243746e2a9c5f00243e60108189c44c9eb
7 changes: 5 additions & 2 deletions trunk/arch/x86/mm/pageattr-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ static int pageattr_test(void)
unsigned int level;
int i, k;
int err;
unsigned long test_addr;

if (print)
printk(KERN_INFO "CPA self-test:\n");
Expand Down Expand Up @@ -172,7 +173,8 @@ static int pageattr_test(void)
continue;
}

err = change_page_attr_set(addr[i], len[i], PAGE_TESTBIT);
test_addr = addr[i];
err = change_page_attr_set(&test_addr, len[i], PAGE_TESTBIT, 0);
if (err < 0) {
printk(KERN_ERR "CPA %d failed %d\n", i, err);
failed++;
Expand Down Expand Up @@ -204,7 +206,8 @@ static int pageattr_test(void)
failed++;
continue;
}
err = change_page_attr_clear(addr[i], len[i], PAGE_TESTBIT);
test_addr = addr[i];
err = change_page_attr_clear(&test_addr, len[i], PAGE_TESTBIT, 0);
if (err < 0) {
printk(KERN_ERR "CPA reverting failed: %d\n", err);
failed++;
Expand Down

0 comments on commit b41e2c9

Please sign in to comment.