Skip to contentSkip to conversation

mm-gup_test-free-memory-allocated-via-kvcalloc-using-kvfree.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Dec 16, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/gup_test: free memory allocated via kvcalloc() using kvfree()
has been removed from the -mm tree. Its filename was
mm-gup_test-free-memory-allocated-via-kvcalloc-using-kvfree.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: mm/gup_test: free memory allocated via kvcalloc() using kvfree()
Date: Mon, 12 Dec 2022 19:20:18 +0100

We have to free via kvfree(), not via kfree().

Fixes c77369b437f9 ("mm/gup_test: start/stop/read functionality for PIN LONGTERM test")

---

 mm/gup_test.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/gup_test.c renamed from mm/gup_test.c~mm-gup_test-free-memory-allocated-via-kvcalloc-using-kvfree +2 -2
@@ -214,7 +214,7 @@ static inline void pin_longterm_test_sto
 		if (pin_longterm_test_nr_pages)
 			unpin_user_pages(pin_longterm_test_pages,
 					 pin_longterm_test_nr_pages);
-		kfree(pin_longterm_test_pages);
+		kvfree(pin_longterm_test_pages);
 		pin_longterm_test_pages = NULL;
 		pin_longterm_test_nr_pages = 0;
 	}
@@ -255,7 +255,7 @@ static inline int pin_longterm_test_star
 	fast = !!(args.flags & PIN_LONGTERM_TEST_FLAG_USE_FAST);
 
 	if (!fast && mmap_read_lock_killable(current->mm)) {
-		kfree(pages);
+		kvfree(pages);
 		return -EINTR;
 	}
 

_

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