Explorar o código

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 <herbert@gondor.apana.org.au>
Herbert Xu %!s(int64=10) %!d(string=hai) anos
pai
achega
056c04ba8b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      crypto/seqiv.c

+ 1 - 0
crypto/seqiv.c

@@ -874,6 +874,7 @@ out_undo_niv:
 
 
 static void __exit seqiv_module_exit(void)
 static void __exit seqiv_module_exit(void)
 {
 {
+	crypto_unregister_template(&seqniv_tmpl);
 	crypto_unregister_template(&seqiv_tmpl);
 	crypto_unregister_template(&seqiv_tmpl);
 }
 }