Skip to content

Commit

Permalink
crypto: seqiv - Fix module unload/reload crash
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Herbert Xu committed May 28, 2015
1 parent ccdb8a0 commit 056c04b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crypto/seqiv.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,7 @@ static int __init seqiv_module_init(void)

static void __exit seqiv_module_exit(void)
{
crypto_unregister_template(&seqniv_tmpl);
crypto_unregister_template(&seqiv_tmpl);
}

Expand Down

0 comments on commit 056c04b

Please sign in to comment.