* [merged mm-stable] mm-gup_test-free-memory-allocated-via-kvcalloc-using-kvfree.patch removed from -mm tree
@ 2022-12-16 0:38 Andrew Morton
0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2022-12-16 0:38 UTC (permalink / raw)
To: mm-commits, lkp, julia.lawall, david, akpm
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 <david@redhat.com>
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().
Link: https://lkml.kernel.org/r/20221212182018.264900-1-david@redhat.com
Fixes: c77369b437f9 ("mm/gup_test: start/stop/read functionality for PIN LONGTERM test")
Signed-off-by: David Hildenbrand <david@redhat.com>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/gup_test.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/mm/gup_test.c~mm-gup_test-free-memory-allocated-via-kvcalloc-using-kvfree
+++ a/mm/gup_test.c
@@ -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 david@redhat.com are
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-16 0:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-16 0:38 [merged mm-stable] mm-gup_test-free-memory-allocated-via-kvcalloc-using-kvfree.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.