From: Herbert Xu Date: Wed, 27 May 2015 06:37:40 +0000 (+0800) Subject: crypto: seqiv - Fix module unload/reload crash X-Git-Tag: firefly_0821_release~176^2~1617^2~121 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=056c04ba8bbad4c563c05306cc8a8c66e713f280;p=firefly-linux-kernel-4.4.55.git crypto: seqiv - Fix module unload/reload crash On module unload we weren't unregistering the seqniv template, thus leading to a crash the next time someone walks the template list. Signed-off-by: Herbert Xu --- diff --git a/crypto/seqiv.c b/crypto/seqiv.c index c0dba8f2f468..233397445025 100644 --- a/crypto/seqiv.c +++ b/crypto/seqiv.c @@ -874,6 +874,7 @@ out_undo_niv: static void __exit seqiv_module_exit(void) { + crypto_unregister_template(&seqniv_tmpl); crypto_unregister_template(&seqiv_tmpl); }