Skip to contentSkip to conversation

unicore32-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] unicore32-handle-pgtable_page_ctor-fail.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 15 Nov 2013 12:08:38 -0800

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

---

 arch/unicore32/include/asm/pgalloc.h |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
arch/unicore32/include/asm/pgalloc.h renamed from arch/unicore32/include/asm/pgalloc.h~unicore32-handle-pgtable_page_ctor-fail +8 -6
diff -puN arch/unicore32/include/asm/pgalloc.h~unicore32-handle-pgtable_page_ctor-fail arch/unicore32/include/asm/pgalloc.h
@@ -51,12 +51,14 @@ pte_alloc_one(struct mm_struct *mm, unsi
 	struct page *pte;
 
 	pte = alloc_pages(PGALLOC_GFP, 0);
-	if (pte) {
-		if (!PageHighMem(pte)) {
-			void *page = page_address(pte);
-			clean_dcache_area(page, PTRS_PER_PTE * sizeof(pte_t));
-		}
-		pgtable_page_ctor(pte);
+	if (!pte)
+		return NULL;
+	if (!PageHighMem(pte)) {
+		void *page = page_address(pte);
+		clean_dcache_area(page, PTRS_PER_PTE * sizeof(pte_t));
+	}
+	if (!pgtable_page_ctor(pte)) {
+		__free_page(pte);
 	}
 
 	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