Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344379
b: refs/heads/master
c: 3200da8
h: refs/heads/master
i:
  344377: 54bfd95
  344375: 82cf8d1
v: v3
  • Loading branch information
Wei Yongjun authored and Herbert Xu committed Oct 24, 2012
1 parent 320929a commit 9f05260
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: c12ab20b162c9414acadc18c6da6cfd3eea54b7b
refs/heads/master: 3200da8d9afb3d0dc617515a2fe364d9d59ef523
8 changes: 6 additions & 2 deletions trunk/drivers/crypto/tegra-aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,8 +674,10 @@ static int tegra_aes_get_random(struct crypto_rng *tfm, u8 *rdata,
mutex_lock(&aes_lock);

ret = clk_prepare_enable(dd->aes_clk);
if (ret)
if (ret) {
mutex_unlock(&aes_lock);
return ret;
}

ctx->dd = dd;
dd->ctx = ctx;
Expand Down Expand Up @@ -759,8 +761,10 @@ static int tegra_aes_rng_reset(struct crypto_rng *tfm, u8 *seed,
dd->flags = FLAGS_ENCRYPT | FLAGS_RNG;

ret = clk_prepare_enable(dd->aes_clk);
if (ret)
if (ret) {
mutex_unlock(&aes_lock);
return ret;
}

aes_set_key(dd);

Expand Down

0 comments on commit 9f05260

Please sign in to comment.