Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1285
b: refs/heads/master
c: 13479d5
h: refs/heads/master
i:
  1283: 8f3ba36
v: v3
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed May 20, 2005
1 parent bb6d2ae commit 5fa1613
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: ba9950c820e556e39cd26581826b5581a64fb641
refs/heads/master: 13479d52c7a61a18900d7f36730b7d3b43723d97
7 changes: 4 additions & 3 deletions trunk/arch/um/kernel/trap_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,11 @@ int handle_page_fault(unsigned long address, unsigned long ip,
*code_out = SEGV_ACCERR;
if(is_write && !(vma->vm_flags & VM_WRITE))
goto out;

if(!(vma->vm_flags & (VM_READ | VM_EXEC)))
goto out;

page = address & PAGE_MASK;
pgd = pgd_offset(mm, page);
pud = pud_offset(pgd, page);
pmd = pmd_offset(pud, page);
do {
survive:
switch (handle_mm_fault(mm, vma, address, is_write)){
Expand Down

0 comments on commit 5fa1613

Please sign in to comment.