Skip to contentSkip to conversation

cris-fix-potential-null-pointer-dereference.patch removed from -mm tree

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

lore
Share & tools
lore
#0 lore raw

Subject: [merged] cris-fix-potential-null-pointer-dereference.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 15 Nov 2013 12:07:42 -0800

The patch titled
Subject: cris: fix potential NULL-pointer dereference
has been removed from the -mm tree. Its filename was
cris-fix-potential-null-pointer-dereference.patch

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

------------------------------------------------------
From: "Kirill A. Shutemov" <[email protected]>
Subject: cris: fix potential NULL-pointer dereference

Add missing check for memory allocation fail.

---

 arch/cris/include/asm/pgalloc.h |    2 ++
 1 file changed, 2 insertions(+)
arch/cris/include/asm/pgalloc.h renamed from arch/cris/include/asm/pgalloc.h~cris-fix-potential-null-pointer-dereference +2 -0
diff -puN arch/cris/include/asm/pgalloc.h~cris-fix-potential-null-pointer-dereference arch/cris/include/asm/pgalloc.h
@@ -32,6 +32,8 @@ static inline pgtable_t pte_alloc_one(st
 {
 	struct page *pte;
 	pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0);
+	if (!pte)
+		return NULL;
 	pgtable_page_ctor(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