Skip to contentSkip to conversation

score-handle-pgtable_page_ctor-fail.patch removed from -mm tree

merged [email protected] 1 participant 1 message Nov 15, 2013

lore
Share & tools
lore
#0 lore raw

Subject: [merged] score-handle-pgtable_page_ctor-fail.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 15 Nov 2013 12:08:28 -0800

The patch titled
Subject: score: handle pgtable_page_ctor() fail
has been removed from the -mm tree. Its filename was
score-handle-pgtable_page_ctor-fail.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: "Kirill A. Shutemov" <[email protected]>
Subject: score: handle pgtable_page_ctor() fail

---

 arch/score/include/asm/pgalloc.h |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
arch/score/include/asm/pgalloc.h renamed from arch/score/include/asm/pgalloc.h~score-handle-pgtable_page_ctor-fail +6 -3
diff -puN arch/score/include/asm/pgalloc.h~score-handle-pgtable_page_ctor-fail arch/score/include/asm/pgalloc.h
@@ -54,9 +54,12 @@ static inline struct page *pte_alloc_one
 	struct page *pte;
 
 	pte = alloc_pages(GFP_KERNEL | __GFP_REPEAT, PTE_ORDER);
-	if (pte) {
-		clear_highpage(pte);
-		pgtable_page_ctor(pte);
+	if (!pte)
+		return NULL;
+	clear_highpage(pte);
+	if (!pgtable_page_ctor(pte)) {
+		__free_page(pte);
+		return NULL;
 	}
 	return pte;
 }

_

Patches currently in -mm which might be from [email protected] are

origin.patch x86-mm-get-aslr-work-for-hugetlb-mappings.patch mm-drop-actor-argument-of-do_generic_file_read-fix.patch