diff --git a/crypto/pcrypt.c b/crypto/pcrypt.c index a5718c0a3dc4e8ea4a02121f972f1d31193f48e3..1348541da463a0cfe57a20e2fa9ddef432194d96 100644 --- a/crypto/pcrypt.c +++ b/crypto/pcrypt.c @@ -505,11 +505,12 @@ static int __init pcrypt_init(void) static void __exit pcrypt_exit(void) { + crypto_unregister_template(&pcrypt_tmpl); + pcrypt_fini_padata(&pencrypt); pcrypt_fini_padata(&pdecrypt); kset_unregister(pcrypt_kset); - crypto_unregister_template(&pcrypt_tmpl); } module_init(pcrypt_init);