Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165727
b: refs/heads/master
c: a3b947e
h: refs/heads/master
i:
  165725: e3cfff2
  165723: 0779c02
  165719: a551328
  165711: e62e90e
  165695: 97c7950
v: v3
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Sep 16, 2009
1 parent b85aa8d commit 6dde4fd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d1737fdbec7f90edc52dd0c5c3767457f28e78d8
refs/heads/master: a3b947eacfe783df4ca0fe53ef8a764eebc2d0d6
6 changes: 6 additions & 0 deletions trunk/mm/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -2711,6 +2711,12 @@ static int __do_fault(struct mm_struct *mm, struct vm_area_struct *vma,
if (unlikely(ret & (VM_FAULT_ERROR | VM_FAULT_NOPAGE)))
return ret;

if (unlikely(PageHWPoison(vmf.page))) {
if (ret & VM_FAULT_LOCKED)
unlock_page(vmf.page);
return VM_FAULT_HWPOISON;
}

/*
* For consistency in subsequent calls, make the faulted page always
* locked.
Expand Down

0 comments on commit 6dde4fd

Please sign in to comment.