summaryrefslogtreecommitdiff
path: root/crypto/internal.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-06-15 12:00:51 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2023-06-23 11:15:36 +0300
commitfa3b3565f3ac5a468e3efebca00e10db5db3d6bb (patch)
tree36aeeb9fdb8d1ea1ff7feddfc7822c3e0e983576 /crypto/internal.h
parentfa919f9e8857bfe230891a8b7ea6d7f69396cdc5 (diff)
downloadlinux-fa3b3565f3ac5a468e3efebca00e10db5db3d6bb.tar.xz
crypto: api - Add __crypto_alloc_tfmgfp
Use it straight away in crypto_clone_cipher(), as that is not meant to sleep. Fixes: 51d8d6d0f4be ("crypto: cipher - Add crypto_clone_cipher") Signed-off-by: Dmitry Safonov <dima@arista.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index 8dd746b1130b..e8c3aad71aa9 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -102,6 +102,8 @@ void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
struct crypto_alg *nalg);
void crypto_remove_final(struct list_head *list);
void crypto_shoot_alg(struct crypto_alg *alg);
+struct crypto_tfm *__crypto_alloc_tfmgfp(struct crypto_alg *alg, u32 type,
+ u32 mask, gfp_t gfp);
struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
u32 mask);
void *crypto_create_tfm_node(struct crypto_alg *alg,