From 8bef6ab3c727a37106ebf920a83571fc91158a38 Mon Sep 17 00:00:00 2001 From: James Morris Date: Wed, 24 Dec 2003 03:42:49 -0800 Subject: [PATCH] [CRYPTO]: Allow tcrypt module to be unloaded. --- crypto/tcrypt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index fd3fd14c00814..3c1c0ae075b57 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -684,7 +684,14 @@ init(void) return 0; } +/* + * If an init function is provided, an exit function must also be provided + * to allow module unload. + */ +static void __exit fini(void) { } + module_init(init); +module_exit(fini); MODULE_PARM(mode, "i"); -- 2.53.0