diff mbox

[10/14] parisc: invoke oom-killer from page fault

Message ID 20100422161224.322033236@suse.de (mailing list archive)
State Accepted
Headers show

Commit Message

Nick Piggin April 22, 2010, 4:06 p.m. UTC
None
diff mbox

Patch

Index: linux-2.6/arch/parisc/mm/fault.c
===================================================================
--- linux-2.6.orig/arch/parisc/mm/fault.c
+++ linux-2.6/arch/parisc/mm/fault.c
@@ -264,8 +264,7 @@  no_context:
 
   out_of_memory:
 	up_read(&mm->mmap_sem);
-	printk(KERN_CRIT "VM: killing process %s\n", current->comm);
-	if (user_mode(regs))
-		do_group_exit(SIGKILL);
-	goto no_context;
+	if (!user_mode(regs))
+		goto no_context;
+	pagefault_out_of_memory();
 }