]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - crypto/api.c
crypto: api - Fix race condition in crypto_spawn_alg
[mirror_ubuntu-bionic-kernel.git] / crypto / api.c
index ff7a7852bb17acc90535be965727f42a2a9ef7e4..6832b599ec4c70a8ebfcbcac9245574eca07b346 100644 (file)
@@ -340,13 +340,12 @@ static unsigned int crypto_ctxsize(struct crypto_alg *alg, u32 type, u32 mask)
        return len;
 }
 
-void crypto_shoot_alg(struct crypto_alg *alg)
+static void crypto_shoot_alg(struct crypto_alg *alg)
 {
        down_write(&crypto_alg_sem);
        alg->cra_flags |= CRYPTO_ALG_DYING;
        up_write(&crypto_alg_sem);
 }
-EXPORT_SYMBOL_GPL(crypto_shoot_alg);
 
 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type,
                                      u32 mask)