Patch 2.6.32.33 to 2.6.32.35
/arch/x86/mm/fault.c
blob:8ac0d763fe2a8086de586274d8479ba3bd10c952 -> blob:1739358b444d834b1adecdd02681e45216ae0eed
--- arch/x86/mm/fault.c
+++ arch/x86/mm/fault.c
@@ -830,13 +830,6 @@ mm_fault_error(struct pt_regs *regs, uns
unsigned long address, unsigned int fault)
{
if (fault & VM_FAULT_OOM) {
- /* Kernel mode? Handle exceptions or die: */
- if (!(error_code & PF_USER)) {
- up_read(&current->mm->mmap_sem);
- no_context(regs, error_code, address);
- return;
- }
-
out_of_memory(regs, error_code, address);
} else {
if (fault & (VM_FAULT_SIGBUS|VM_FAULT_HWPOISON))