arm-handle-pgtable_page_ctor-fail.patch removed from -mm tree
Subject: [merged] arm-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:00 -0800
The patch titled
Subject: arm: handle pgtable_page_ctor() fail
has been removed from the -mm tree. Its filename was
arm-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: arm: handle pgtable_page_ctor() fail
Signed-off-by Kirill A. Shutemov <[email protected]>
Cc Russell King <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
arch/arm/include/asm/pgalloc.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
arch/arm/include/asm/pgalloc.h renamed from arch/arm/include/asm/pgalloc.h~arm-handle-pgtable_page_ctor-fail +7 -4
@@ -102,12 +102,14 @@ pte_alloc_one(struct mm_struct *mm, unsi#else pte =alloc_pages (PGALLOC_GFP ,0 );#endif -if (pte) { -if (!PageHighMem (pte)) -clean_pte_table (page_address (pte)); -pgtable_page_ctor (pte); +if (!pte) +return NULL ; +if (!PageHighMem (pte)) +clean_pte_table (page_address (pte)); +if (!pgtable_page_ctor (pte)) { +__free_page (pte); +return NULL ; }