diff options
Diffstat (limited to 'crypto/shash.c')
-rw-r--r-- | crypto/shash.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index 2ccc8b0076ce..8f9d8831e293 100644 --- a/crypto/shash.c +++ b/crypto/shash.c | |||
@@ -502,5 +502,12 @@ int crypto_unregister_shash(struct shash_alg *alg) | |||
502 | } | 502 | } |
503 | EXPORT_SYMBOL_GPL(crypto_unregister_shash); | 503 | EXPORT_SYMBOL_GPL(crypto_unregister_shash); |
504 | 504 | ||
505 | void shash_free_instance(struct crypto_instance *inst) | ||
506 | { | ||
507 | crypto_drop_spawn(crypto_instance_ctx(inst)); | ||
508 | kfree(shash_instance(inst)); | ||
509 | } | ||
510 | EXPORT_SYMBOL_GPL(shash_free_instance); | ||
511 | |||
505 | MODULE_LICENSE("GPL"); | 512 | MODULE_LICENSE("GPL"); |
506 | MODULE_DESCRIPTION("Synchronous cryptographic hash type"); | 513 | MODULE_DESCRIPTION("Synchronous cryptographic hash type"); |