Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 74779
b: refs/heads/master
c: 72fad71
h: refs/heads/master
i:
  74777: d3aca5d
  74775: 495053a
v: v3
  • Loading branch information
Adam Litke authored and Linus Torvalds committed Dec 11, 2007
1 parent a0179e5 commit ebfe580
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 8805f2387086a7e6a9647d0713fc075694130d6c
refs/heads/master: 72fad7139b6829f71d7f41f39eb30da5760d90a8
2 changes: 1 addition & 1 deletion trunk/mm/hugetlb.c
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ int follow_hugetlb_page(struct mm_struct *mm, struct vm_area_struct *vma,
*/
pte = huge_pte_offset(mm, vaddr & HPAGE_MASK);

if (!pte || pte_none(*pte)) {
if (!pte || pte_none(*pte) || (write && !pte_write(*pte))) {
int ret;

spin_unlock(&mm->page_table_lock);
Expand Down

0 comments on commit ebfe580

Please sign in to comment.