Merge branch 'akpm' (patches from Andrew)
[linux-2.6-microblaze.git] / mm / kfence / kfence_test.c
index eb6307c..f1690cf 100644 (file)
@@ -800,6 +800,9 @@ static int test_init(struct kunit *test)
        unsigned long flags;
        int i;
 
+       if (!__kfence_pool)
+               return -EINVAL;
+
        spin_lock_irqsave(&observed.lock, flags);
        for (i = 0; i < ARRAY_SIZE(observed.lines); i++)
                observed.lines[i][0] = '\0';