Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9248
b: refs/heads/master
c: fea03cb
h: refs/heads/master
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Sep 23, 2005
1 parent c512290 commit 73a7c38
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 12ebcd73e40e09f0dfddf89e465cc0541e0ff8b1
refs/heads/master: fea03cb40a15e3c6647c0927300202e062e6792a
7 changes: 7 additions & 0 deletions trunk/arch/um/kernel/trap_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ int handle_page_fault(unsigned long address, unsigned long ip,
int err = -EFAULT;

*code_out = SEGV_MAPERR;

/* If the fault was during atomic operation, don't take the fault, just
* fail. */
if (in_atomic())
goto out_nosemaphore;

down_read(&mm->mmap_sem);
vma = find_vma(mm, address);
if(!vma)
Expand Down Expand Up @@ -90,6 +96,7 @@ int handle_page_fault(unsigned long address, unsigned long ip,
flush_tlb_page(vma, address);
out:
up_read(&mm->mmap_sem);
out_nosemaphore:
return(err);

/*
Expand Down

0 comments on commit 73a7c38

Please sign in to comment.