Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131130
b: refs/heads/master
c: 4abfd73
h: refs/heads/master
v: v3
  • Loading branch information
Adrian-Ken Rueegsegger authored and Herbert Xu committed Feb 5, 2009
1 parent e9d6017 commit 333933a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: b8e15992b420d09dae831125a623c474c8637cee
refs/heads/master: 4abfd73e34e7915e62b6f75bd3e9f4014f830910
7 changes: 6 additions & 1 deletion trunk/crypto/shash.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,15 @@ static int crypto_init_shash_ops_compat(struct crypto_tfm *tfm)
struct shash_desc *desc = crypto_tfm_ctx(tfm);
struct crypto_shash *shash;

if (!crypto_mod_get(calg))
return -EAGAIN;

shash = __crypto_shash_cast(crypto_create_tfm(
calg, &crypto_shash_type));
if (IS_ERR(shash))
if (IS_ERR(shash)) {
crypto_mod_put(calg);
return PTR_ERR(shash);
}

desc->tfm = shash;
tfm->exit = crypto_exit_shash_ops_compat;
Expand Down

0 comments on commit 333933a

Please sign in to comment.