diff options
| author | Andrey Konovalov <[email protected]> | 2022-01-20 02:09:28 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2022-01-20 06:52:54 +0000 |
| commit | e073e5ef90298d2d6e5e7f04b545a0815e92110c (patch) | |
| tree | 0aee33ed85f8c094f878443d536bb8c78be6cdb5 | |
| parent | uuid: remove licence boilerplate text from the header (diff) | |
| download | kernel-e073e5ef90298d2d6e5e7f04b545a0815e92110c.tar.gz kernel-e073e5ef90298d2d6e5e7f04b545a0815e92110c.zip | |
lib/test_meminit: destroy cache in kmem_cache_alloc_bulk() test
Make do_kmem_cache_size_bulk() destroy the cache it creates.
Link: https://lkml.kernel.org/r/aced20a94bf04159a139f0846e41d38a1537debb.1640018297.git.andreyknvl@google.com
Fixes: 03a9349ac0e0 ("lib/test_meminit: add a kmem_cache_alloc_bulk() test")
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Marco Elver <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
| -rw-r--r-- | lib/test_meminit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/test_meminit.c b/lib/test_meminit.c index e4f706a404b3..3ca717f11397 100644 --- a/lib/test_meminit.c +++ b/lib/test_meminit.c @@ -337,6 +337,7 @@ static int __init do_kmem_cache_size_bulk(int size, int *total_failures) if (num) kmem_cache_free_bulk(c, num, objects); } + kmem_cache_destroy(c); *total_failures += fail; return 1; } |
