Skip to contentSkip to conversation

mm-hmm-hmm_pfns_bad-was-accessing-wrong-struct.patch removed from -mm tree

merged [email protected] 1 participant 1 message Apr 11, 2018 Stable branch

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm/hmm: hmm_pfns_bad() was accessing wrong struct
has been removed from the -mm tree. Its filename was
mm-hmm-hmm_pfns_bad-was-accessing-wrong-struct.patch

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

------------------------------------------------------
From: Jérôme Glisse <[email protected]>
Subject: mm/hmm: hmm_pfns_bad() was accessing wrong struct

The private field of mm_walk struct point to an hmm_vma_walk struct and not to the hmm_range struct desired. Fix to get proper struct pointer.

---

 mm/hmm.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
mm/hmm.c renamed from mm/hmm.c~mm-hmm-hmm_pfns_bad-was-accessing-wrong-struct +2 -1
diff -puN mm/hmm.c~mm-hmm-hmm_pfns_bad-was-accessing-wrong-struct mm/hmm.c
@@ -336,7 +336,8 @@ static int hmm_pfns_bad(unsigned long ad
 			unsigned long end,
 			struct mm_walk *walk)
 {
-	struct hmm_range *range = walk->private;
+	struct hmm_vma_walk *hmm_vma_walk = walk->private;
+	struct hmm_range *range = hmm_vma_walk->range;
 	hmm_pfn_t *pfns = range->pfns;
 	unsigned long i;
 

_

Patches currently in -mm which might be from [email protected] are