]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - crypto/api.c
crypto: af_alg - Use bh_lock_sock in sk_destruct
[mirror_ubuntu-bionic-kernel.git] / crypto / api.c
index 2a2479d168aacbe3e31799a2c713614b71e6805b..ff7a7852bb17acc90535be965727f42a2a9ef7e4 100644 (file)
@@ -216,7 +216,7 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask)
        mask &= ~(CRYPTO_ALG_LARVAL | CRYPTO_ALG_DEAD);
 
        alg = crypto_alg_lookup(name, type, mask);
-       if (!alg) {
+       if (!alg && !(mask & CRYPTO_NOLOAD)) {
                request_module("crypto-%s", name);
 
                if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask &