diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-09-12 09:05:49 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-09-12 09:05:49 -0700 |
commit | fb52c87a06324e3a9223bf7bb3b087557524f96e (patch) | |
tree | 855ffb2456e8c66411df8a3a081463ff57d3aacc /lib/kunit/test.c | |
parent | afe03f088fc177e8461270a959823fc2e2b046e5 (diff) | |
parent | 9076bc476d7ebf0565903c4b048442131825c1c3 (diff) |
Merge tag 'linux-kselftest-kunit-6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kunit fixes from Shuah Khan:
"Fixes to possible memory leak, null-ptr-deref, wild-memory-access, and
error path bugs"
* tag 'linux-kselftest-kunit-6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
kunit: Fix possible memory leak in kunit_filter_suites()
kunit: Fix possible null-ptr-deref in kunit_parse_glob_filter()
kunit: Fix the wrong err path and add goto labels in kunit_filter_suites()
kunit: Fix wild-memory-access bug in kunit_free_suite_set()
kunit: test: Make filter strings in executor_test writable
Diffstat (limited to 'lib/kunit/test.c')
-rw-r--r-- | lib/kunit/test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/kunit/test.c b/lib/kunit/test.c index 49698a168437a..421f139814123 100644 --- a/lib/kunit/test.c +++ b/lib/kunit/test.c @@ -784,12 +784,13 @@ static int kunit_module_notify(struct notifier_block *nb, unsigned long val, switch (val) { case MODULE_STATE_LIVE: - kunit_module_init(mod); break; case MODULE_STATE_GOING: kunit_module_exit(mod); break; case MODULE_STATE_COMING: + kunit_module_init(mod); + break; case MODULE_STATE_UNFORMED: break; } |