summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-05-27 14:37:40 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-28 11:23:19 +0800
commit056c04ba8bbad4c563c05306cc8a8c66e713f280 (patch)
treee3740711265f227b25979c53b2d3d5651c679cd9 /crypto
parentccdb8a038451e5f8d62c786591902f08308be524 (diff)
downloadop-kernel-dev-056c04ba8bbad4c563c05306cc8a8c66e713f280.zip
op-kernel-dev-056c04ba8bbad4c563c05306cc8a8c66e713f280.tar.gz
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>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/seqiv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/seqiv.c b/crypto/seqiv.c
index c0dba8f..2333974 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);
}
OpenPOWER on IntegriCloud