aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_kasan.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test_kasan.c')
-rw-r--r--lib/test_kasan.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/test_kasan.c b/lib/test_kasan.c
index a25c9763fce1..ef1a3ac1397e 100644
--- a/lib/test_kasan.c
+++ b/lib/test_kasan.c
@@ -353,10 +353,9 @@ static noinline void __init memcg_accounted_kmem_cache(void)
353 */ 353 */
354 for (i = 0; i < 5; i++) { 354 for (i = 0; i < 5; i++) {
355 p = kmem_cache_alloc(cache, GFP_KERNEL); 355 p = kmem_cache_alloc(cache, GFP_KERNEL);
356 if (!p) { 356 if (!p)
357 pr_err("Allocation failed\n");
358 goto free_cache; 357 goto free_cache;
359 } 358
360 kmem_cache_free(cache, p); 359 kmem_cache_free(cache, p);
361 msleep(100); 360 msleep(100);
362 } 361 }