]> git.baikalelectronics.ru Git - kernel.git/commit
rhashtable: allow to unload test module
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 19 Feb 2015 23:53:39 +0000 (00:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2015 22:38:10 +0000 (17:38 -0500)
commitd5b01d292ff2446f336e470a043fd1531417529c
tree399b7b1a73b7bbf15cb871fe00fb01fa02b3af16
parent95d73ecc6962624a49f7a77ab45d257d10983e32
rhashtable: allow to unload test module

There's no good reason why to disallow unloading of the rhashtable
test case module.

Commit 48b0a8c0aaae 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: 48b0a8c0aaae ("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>
lib/test_rhashtable.c