]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
thp-setup-huge-zero-page-on-non-write-page-fault-fix
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Thu, 29 Nov 2012 03:17:38 +0000 (14:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:16 +0000 (16:23 +1100)
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@linux.intel.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c

index 58e8004243a67bb27588d9749808ef5211020996..373119d7f0e1771afee9271e4f9d7e0f117db3e1 100644 (file)
@@ -738,7 +738,7 @@ int do_huge_pmd_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma,
                        pgtable_t pgtable;
                        pgtable = pte_alloc_one(mm, haddr);
                        if (unlikely(!pgtable))
-                               goto out;
+                               return VM_FAULT_OOM;
                        spin_lock(&mm->page_table_lock);
                        set_huge_zero_page(pgtable, mm, vma, haddr, pmd);
                        spin_unlock(&mm->page_table_lock);