aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crypto/algapi.c6
-rw-r--r--crypto/internal.h2
2 files changed, 5 insertions, 3 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c
index 6fd9bcf876ad..1b54d7416545 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -129,9 +129,8 @@ static void crypto_remove_spawn(struct crypto_spawn *spawn,
129 BUG_ON(!list_empty(&inst->alg.cra_users)); 129 BUG_ON(!list_empty(&inst->alg.cra_users));
130} 130}
131 131
132static void crypto_remove_spawns(struct crypto_alg *alg, 132void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
133 struct list_head *list, 133 struct crypto_alg *nalg)
134 struct crypto_alg *nalg)
135{ 134{
136 u32 new_type = (nalg ?: alg)->cra_flags; 135 u32 new_type = (nalg ?: alg)->cra_flags;
137 struct crypto_spawn *spawn, *n; 136 struct crypto_spawn *spawn, *n;
@@ -177,6 +176,7 @@ static void crypto_remove_spawns(struct crypto_alg *alg,
177 crypto_remove_spawn(spawn, list); 176 crypto_remove_spawn(spawn, list);
178 } 177 }
179} 178}
179EXPORT_SYMBOL_GPL(crypto_remove_spawns);
180 180
181static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg) 181static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg)
182{ 182{
diff --git a/crypto/internal.h b/crypto/internal.h
index d4384b08ab29..b6dcb31c1120 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -86,6 +86,8 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask);
86void crypto_larval_error(const char *name, u32 type, u32 mask); 86void crypto_larval_error(const char *name, u32 type, u32 mask);
87void crypto_alg_tested(const char *name, int err); 87void crypto_alg_tested(const char *name, int err);
88 88
89void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
90 struct crypto_alg *nalg);
89void crypto_shoot_alg(struct crypto_alg *alg); 91void crypto_shoot_alg(struct crypto_alg *alg);
90struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, 92struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
91 u32 mask); 93 u32 mask);