Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34203
b: refs/heads/master
c: 72fa491
h: refs/heads/master
i:
  34201: d506d74
  34199: f6c843c
v: v3
  • Loading branch information
Herbert Xu committed Sep 21, 2006
1 parent e990cc6 commit b67715d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eaf44088ff467410dd15a033fef118888002ffe6
refs/heads/master: 72fa491912689ca69dd15f4266945d2c2f2819f8
14 changes: 7 additions & 7 deletions trunk/crypto/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
LIST_HEAD(crypto_alg_list);
DECLARE_RWSEM(crypto_alg_sem);

static inline int crypto_alg_get(struct crypto_alg *alg)
static inline int crypto_mod_get(struct crypto_alg *alg)
{
return try_module_get(alg->cra_module);
}

static inline void crypto_alg_put(struct crypto_alg *alg)
static inline void crypto_mod_put(struct crypto_alg *alg)
{
module_put(alg->cra_module);
}
Expand All @@ -57,12 +57,12 @@ static struct crypto_alg *crypto_alg_lookup(const char *name)
if (!exact && !(fuzzy && q->cra_priority > best))
continue;

if (unlikely(!crypto_alg_get(q)))
if (unlikely(!crypto_mod_get(q)))
continue;

best = q->cra_priority;
if (alg)
crypto_alg_put(alg);
crypto_mod_put(alg);
alg = q;

if (exact)
Expand Down Expand Up @@ -202,7 +202,7 @@ struct crypto_tfm *crypto_alloc_tfm(const char *name, u32 flags)
kfree(tfm);
tfm = NULL;
out_put:
crypto_alg_put(alg);
crypto_mod_put(alg);
out:
return tfm;
}
Expand All @@ -221,7 +221,7 @@ void crypto_free_tfm(struct crypto_tfm *tfm)
if (alg->cra_exit)
alg->cra_exit(tfm);
crypto_exit_ops(tfm);
crypto_alg_put(alg);
crypto_mod_put(alg);
memset(tfm, 0, size);
kfree(tfm);
}
Expand Down Expand Up @@ -305,7 +305,7 @@ int crypto_alg_available(const char *name, u32 flags)
struct crypto_alg *alg = crypto_alg_mod_lookup(name);

if (alg) {
crypto_alg_put(alg);
crypto_mod_put(alg);
ret = 1;
}

Expand Down

0 comments on commit b67715d

Please sign in to comment.