Skip to contentSkip to conversation

+ ocfs2-refcounttree-add-the-missing-null-check-of-the-return-value-of-find_or_create_page.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Jul 9, 2013 OCFS2

lore
Share & tools
lore
#0 lore raw

Subject: + ocfs2-refcounttree-add-the-missing-null-check-of-the-return-value-of-find_or_create_page.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 09 Jul 2013 15:22:34 -0700

The patch titled
Subject: ocfs2/refcounttree: add the missing NULL check of the return value of find_or_create_page()
has been added to the -mm tree. Its filename is
ocfs2-refcounttree-add-the-missing-null-check-of-the-return-value-of-find_or_create_page.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/ocfs2-refcounttree-add-the-missing-null-check-of-the-return-value-of-find_or_create_page.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/ocfs2-refcounttree-add-the-missing-null-check-of-the-return-value-of-find_or_create_page.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Gu Zheng <[email protected]>
Subject: ocfs2/refcounttree: add the missing NULL check of the return value of find_or_create_page()

Add the missing NULL check of the return value of find_or_create_page() in function ocfs2_duplicate_clusters_by_page().

---

 fs/ocfs2/refcounttree.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
fs/ocfs2/refcounttree.c renamed from fs/ocfs2/refcounttree.c~ocfs2-refcounttree-add-the-missing-null-check-of-the-return-value-of-find_or_create_page +0 -0
diff -puN fs/ocfs2/refcounttree.c~ocfs2-refcounttree-add-the-missing-null-check-of-the-return-value-of-find_or_create_page fs/ocfs2/refcounttree.c
@@ -2965,7 +2965,11 @@ int ocfs2_duplicate_clusters_by_page(han
 			to = map_end & (PAGE_CACHE_SIZE - 1);
 
 		page = find_or_create_page(mapping, page_index, GFP_NOFS);