linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] crypto: lib/chacha20poly1305 - define empty module exit function
@ 2021-01-15 17:17 Jason A. Donenfeld
  2021-01-15 17:25 ` Ard Biesheuvel
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Jason A. Donenfeld @ 2021-01-15 17:17 UTC (permalink / raw)
  To: linux-crypto, ardb, herbert; +Cc: Jason A. Donenfeld, John Donnelly

With no mod_exit function, users are unable to load the module after
use. I'm not aware of any reason why module unloading should be
prohibited for this one, so this commit simply adds an empty exit
function.

Reported-by: John Donnelly <john.p.donnelly@oracle.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
---
 lib/crypto/chacha20poly1305.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/crypto/chacha20poly1305.c b/lib/crypto/chacha20poly1305.c
index 5850f3b87359..c2fcdb98cc02 100644
--- a/lib/crypto/chacha20poly1305.c
+++ b/lib/crypto/chacha20poly1305.c
@@ -362,7 +362,12 @@ static int __init mod_init(void)
 	return 0;
 }
 
+static void __exit mod_exit(void)
+{
+}
+
 module_init(mod_init);
+module_exit(mod_exit);
 MODULE_LICENSE("GPL v2");
 MODULE_DESCRIPTION("ChaCha20Poly1305 AEAD construction");
 MODULE_AUTHOR("Jason A. Donenfeld <Jason@zx2c4.com>");
-- 
2.30.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-01-22  6:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-15 17:17 [PATCH] crypto: lib/chacha20poly1305 - define empty module exit function Jason A. Donenfeld
2021-01-15 17:25 ` Ard Biesheuvel
2021-01-15 17:44 ` Eric Biggers
2021-01-15 18:06 ` John Donnelly
2021-01-15 19:30 ` [PATCH v2] " Jason A. Donenfeld
2021-01-16  0:28   ` John Donnelly
2021-01-16  0:31     ` Jason A. Donenfeld
2021-01-22  6:21   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).