Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190931
b: refs/heads/master
c: adbf6e6
h: refs/heads/master
i:
  190929: 596d5cc
  190927: aeb3221
v: v3
  • Loading branch information
Nick Piggin authored and Geert Uytterhoeven committed May 17, 2010
1 parent e4b8db7 commit 8d078ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 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: f3c7f317c91e45aac0ef9d0b6474cd4637de69f0
refs/heads/master: adbf6e6952e80ae42a403442dcae21438cae94b3
14 changes: 4 additions & 10 deletions trunk/arch/m68k/mm/fault.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ int do_page_fault(struct pt_regs *regs, unsigned long address,
* the fault.
*/

survive:
fault = handle_mm_fault(mm, vma, address, write ? FAULT_FLAG_WRITE : 0);
#ifdef DEBUG
printk("handle_mm_fault returns %d\n",fault);
Expand All @@ -180,15 +179,10 @@ int do_page_fault(struct pt_regs *regs, unsigned long address,
*/
out_of_memory:
up_read(&mm->mmap_sem);
if (is_global_init(current)) {
yield();
down_read(&mm->mmap_sem);
goto survive;
}

printk("VM: killing process %s\n", current->comm);
if (user_mode(regs))
do_group_exit(SIGKILL);
if (!user_mode(regs))
goto no_context;
pagefault_out_of_memory();
return 0;

no_context:
current->thread.signo = SIGBUS;
Expand Down

0 comments on commit 8d078ff

Please sign in to comment.