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)
commit6dd0c1655be26345960a6bae574c7dc4648611d3
tree399b7b1a73b7bbf15cb871fe00fb01fa02b3af16
parenteb6d1abf1bd8bf1beb45b5401c8324bdb8f893c4
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>
lib/test_rhashtable.c