diff options
author | Daniel Borkmann <daniel@iogearbox.net> | 2015-02-20 02:53:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-02-21 01:38:10 +0300 |
commit | 6dd0c1655be26345960a6bae574c7dc4648611d3 (patch) | |
tree | 399b7b1a73b7bbf15cb871fe00fb01fa02b3af16 | |
parent | eb6d1abf1bd8bf1beb45b5401c8324bdb8f893c4 (diff) | |
download | linux-6dd0c1655be26345960a6bae574c7dc4648611d3.tar.xz |
rhashtable: allow to unload test module
There's no good reason why to disallow unloading of the rhashtable
test case module.
Commit 9d6dbe1bbaf8 moved the code from a boot test into a stand-alone
module, but only converted the subsys_initcall() handler into a
module_init() function without a related exit handler, and thus
preventing the test module from unloading.
Fixes: 9d6dbe1bbaf8 ("rhashtable: Make selftest modular")
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | lib/test_rhashtable.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/test_rhashtable.c b/lib/test_rhashtable.c index f6ce291b68e7..58b995323c44 100644 --- a/lib/test_rhashtable.c +++ b/lib/test_rhashtable.c @@ -223,6 +223,11 @@ static int __init test_rht_init(void) return err; } +static void __exit test_rht_exit(void) +{ +} + module_init(test_rht_init); +module_exit(test_rht_exit); MODULE_LICENSE("GPL v2"); |