Skip to contentSkip to conversation

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

merged [email protected] 1 participant 1 message Nov 15, 2013 PA-RISC architecture

lore
Share & tools
lore
#0 lore raw

Subject: [merged] parisc-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:22 -0800

The patch titled
Subject: parisc: handle pgtable_page_ctor() fail
has been removed from the -mm tree. Its filename was
parisc-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: parisc: handle pgtable_page_ctor() fail

Cc "James E.J. Bottomley" <[email protected]>
Cc Helge Deller <[email protected]>

---

 arch/parisc/include/asm/pgalloc.h |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
arch/parisc/include/asm/pgalloc.h renamed from arch/parisc/include/asm/pgalloc.h~parisc-handle-pgtable_page_ctor-fail +6 -2
diff -puN arch/parisc/include/asm/pgalloc.h~parisc-handle-pgtable_page_ctor-fail arch/parisc/include/asm/pgalloc.h
@@ -121,8 +121,12 @@ static inline pgtable_t
 pte_alloc_one(struct mm_struct *mm, unsigned long address)
 {
 	struct page *page = alloc_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO);
-	if (page)
-		pgtable_page_ctor(page);
+	if (!page)
+		return NULL;
+	if (!pgtable_page_ctor(page)) {
+		__free_page(page);
+		return NULL;
+	}
 	return page;
 }
 

_

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