mm/gup_test: free memory allocated via kvcalloc() using kvfree()
authorDavid Hildenbrand <david@redhat.com>
Mon, 12 Dec 2022 18:20:18 +0000 (19:20 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 16 Dec 2022 00:37:48 +0000 (16:37 -0800)
commit61b963b52f59524e27692bc1c14bfb2459e32eb3
treeae13bc83e9b809e708372f9c158b2a53c12b85c0
parent8fa590bf344816c925810331eea8387627bbeb40
mm/gup_test: free memory allocated via kvcalloc() using kvfree()

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