Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190664
b: refs/heads/master
c: 21e1c93
h: refs/heads/master
v: v3
  • Loading branch information
Nick Piggin authored and Michal Simek committed May 6, 2010
1 parent 216d2a9 commit 4c63eb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 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: f3ff8212a24f1935b44a3fcdd81c787428f053a6
refs/heads/master: 21e1c93631e027136ea4070e7bca600c4ad4f391
13 changes: 4 additions & 9 deletions trunk/arch/microblaze/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,16 +273,11 @@ void do_page_fault(struct pt_regs *regs, unsigned long address,
* us unable to handle the page fault gracefully.
*/
out_of_memory:
if (current->pid == 1) {
yield();
down_read(&mm->mmap_sem);
goto survive;
}
up_read(&mm->mmap_sem);
printk(KERN_WARNING "VM: killing process %s\n", current->comm);
if (user_mode(regs))
do_exit(SIGKILL);
bad_page_fault(regs, address, SIGKILL);
if (!user_mode(regs))
bad_page_fault(regs, address, SIGKILL);
else
pagefault_out_of_memory();
return;

do_sigbus:
Expand Down

0 comments on commit 4c63eb8

Please sign in to comment.