diff options
author | David S. Miller <davem@davemloft.net> | 2009-08-02 19:17:15 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-08-02 19:17:15 -0700 |
commit | a923c28fc538a4161b15e9b5d7d48248d73d3e6f (patch) | |
tree | 93c56ef8e84c2210b6fe568568556700b96a620a /arch/sparc/mm/fault_64.c | |
parent | 9a926d86b29a25456f1dd8c9df938e151b1c3978 (diff) | |
download | kernel_samsung_smdk4412-a923c28fc538a4161b15e9b5d7d48248d73d3e6f.zip kernel_samsung_smdk4412-a923c28fc538a4161b15e9b5d7d48248d73d3e6f.tar.gz kernel_samsung_smdk4412-a923c28fc538a4161b15e9b5d7d48248d73d3e6f.tar.bz2 |
sparc: Use page_fault_out_of_memory() for VM_FAULT_OOM.
As noted by Nick Piggin.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/mm/fault_64.c')
-rw-r--r-- | arch/sparc/mm/fault_64.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/sparc/mm/fault_64.c b/arch/sparc/mm/fault_64.c index e5620b2..43b0da9 100644 --- a/arch/sparc/mm/fault_64.c +++ b/arch/sparc/mm/fault_64.c @@ -447,9 +447,10 @@ handle_kernel_fault: out_of_memory: insn = get_fault_insn(regs, insn); up_read(&mm->mmap_sem); - printk("VM: killing process %s\n", current->comm); - if (!(regs->tstate & TSTATE_PRIV)) - do_group_exit(SIGKILL); + if (!(regs->tstate & TSTATE_PRIV)) { + pagefault_out_of_memory(); + return; + } goto handle_kernel_fault; intr_or_no_mm: |