All of lore.kernel.org
 help / color / mirror / Atom feed
* [folded-merged] fs-proc-move-page_mapcount-to-fs-proc-internalh-fix.patch removed from -mm tree
@ 2024-06-25  4:29 Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2024-06-25  4:29 UTC (permalink / raw)
  To: mm-commits, usama.anjum, david, dan.carpenter, akpm


The quilt patch titled
     Subject: fs/proc/task_mmu: fix uninitialized variable in pagemap_pmd_range()
has been removed from the -mm tree.  Its filename was
     fs-proc-move-page_mapcount-to-fs-proc-internalh-fix.patch

This patch was dropped because it was folded into fs-proc-move-page_mapcount-to-fs-proc-internalh.patch

------------------------------------------------------
From: Dan Carpenter <dan.carpenter@linaro.org>
Subject: fs/proc/task_mmu: fix uninitialized variable in pagemap_pmd_range()
Date: Thu, 13 Jun 2024 17:34:33 +0300

The "folio" pointer is tested for NULL, but it's either valid or
uninitialized.  Initialize it to NULL.

Link: https://lkml.kernel.org/r/9d6eaba7-92f8-4a70-8765-38a519680a87@moroto.mountain
Fixes: 84f57f8b8914 ("fs/proc: move page_mapcount() to fs/proc/internal.h")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 fs/proc/task_mmu.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/fs/proc/task_mmu.c~fs-proc-move-page_mapcount-to-fs-proc-internalh-fix
+++ a/fs/proc/task_mmu.c
@@ -1495,7 +1495,7 @@ static int pagemap_pmd_range(pmd_t *pmdp
 		u64 flags = 0, frame = 0;
 		pmd_t pmd = *pmdp;
 		struct page *page = NULL;
-		struct folio *folio;
+		struct folio *folio = NULL;
 
 		if (vma->vm_flags & VM_SOFTDIRTY)
 			flags |= PM_SOFT_DIRTY;
_

Patches currently in -mm which might be from dan.carpenter@linaro.org are

fs-proc-move-page_mapcount-to-fs-proc-internalh.patch
checkpatch-check-for-missing-fixes-tags.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-06-25  4:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25  4:29 [folded-merged] fs-proc-move-page_mapcount-to-fs-proc-internalh-fix.patch removed from -mm tree Andrew Morton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.