]> Git Repo - linux.git/blobdiff - lib/test_kasan.c
Merge branch 'mlxsw-various-fixes'
[linux.git] / lib / test_kasan.c
index b04729b61d1d2e696ae8e53893a4a42528da670b..25576303897bd1ab9400c0c0425657b042b63530 100644 (file)
@@ -47,6 +47,11 @@ static bool multishot;
  */
 static int kasan_test_init(struct kunit *test)
 {
+       if (!kasan_enabled()) {
+               kunit_err(test, "can't run KASAN tests with KASAN disabled");
+               return -1;
+       }
+
        multishot = kasan_save_enable_multi_shot();
        kasan_set_tagging_report_once(false);
        return 0;
This page took 0.032953 seconds and 4 git commands to generate.