diff options
Diffstat (limited to 'crypto/api.c')
-rw-r--r-- | crypto/api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/api.c b/crypto/api.c index 2a2479d168aa..70a894e52ff3 100644 --- a/crypto/api.c +++ b/crypto/api.c | |||
@@ -137,7 +137,7 @@ static struct crypto_alg *crypto_larval_add(const char *name, u32 type, | |||
137 | if (IS_ERR(larval)) | 137 | if (IS_ERR(larval)) |
138 | return ERR_CAST(larval); | 138 | return ERR_CAST(larval); |
139 | 139 | ||
140 | atomic_set(&larval->alg.cra_refcnt, 2); | 140 | refcount_set(&larval->alg.cra_refcnt, 2); |
141 | 141 | ||
142 | down_write(&crypto_alg_sem); | 142 | down_write(&crypto_alg_sem); |
143 | alg = __crypto_alg_lookup(name, type, mask); | 143 | alg = __crypto_alg_lookup(name, type, mask); |
@@ -205,7 +205,8 @@ struct crypto_alg *crypto_alg_lookup(const char *name, u32 type, u32 mask) | |||
205 | } | 205 | } |
206 | EXPORT_SYMBOL_GPL(crypto_alg_lookup); | 206 | EXPORT_SYMBOL_GPL(crypto_alg_lookup); |
207 | 207 | ||
208 | struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask) | 208 | static struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, |
209 | u32 mask) | ||
209 | { | 210 | { |
210 | struct crypto_alg *alg; | 211 | struct crypto_alg *alg; |
211 | 212 | ||
@@ -231,7 +232,6 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask) | |||
231 | 232 | ||
232 | return crypto_larval_add(name, type, mask); | 233 | return crypto_larval_add(name, type, mask); |
233 | } | 234 | } |
234 | EXPORT_SYMBOL_GPL(crypto_larval_lookup); | ||
235 | 235 | ||
236 | int crypto_probing_notify(unsigned long val, void *v) | 236 | int crypto_probing_notify(unsigned long val, void *v) |
237 | { | 237 | { |