Merge tag 'hardening-v6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees...
[linux-block.git] / mm / gup_test.c
index 33f431e0da60bf79c7bc5adb03d734c312d738a3..8ae7307a1bb6e64e46f98f831450bdcec554bc12 100644 (file)
@@ -214,7 +214,7 @@ static inline void pin_longterm_test_stop(void)
                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_start(unsigned long arg)
        fast = !!(args.flags & PIN_LONGTERM_TEST_FLAG_USE_FAST);
 
        if (!fast && mmap_read_lock_killable(current->mm)) {
-               kfree(pages);
+               kvfree(pages);
                return -EINTR;
        }