Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283301
b: refs/heads/master
c: 0b2730d
h: refs/heads/master
i:
  283299: dd75a5d
v: v3
  • Loading branch information
Kim Phillips authored and Herbert Xu committed Dec 20, 2011
1 parent dd248b6 commit 9515ad4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: 741e8c2d8177eca656bc015ef83ab84d817edf8c
refs/heads/master: 0b2730d8d8b38e009607d5a094d48fcce73af547
8 changes: 4 additions & 4 deletions trunk/drivers/crypto/talitos.c
Original file line number Diff line number Diff line change
Expand Up @@ -2626,8 +2626,10 @@ static struct talitos_crypto_alg *talitos_alg_alloc(struct device *dev,
alg = &t_alg->algt.alg.hash.halg.base;
alg->cra_init = talitos_cra_init_ahash;
if (!(priv->features & TALITOS_FTR_HMAC_OK) &&
!strncmp(alg->cra_name, "hmac", 4))
!strncmp(alg->cra_name, "hmac", 4)) {
kfree(t_alg);
return ERR_PTR(-ENOTSUPP);
}
if (!(priv->features & TALITOS_FTR_SHA224_HWINIT) &&
(!strcmp(alg->cra_name, "sha224") ||
!strcmp(alg->cra_name, "hmac(sha224)"))) {
Expand Down Expand Up @@ -2835,10 +2837,8 @@ static int talitos_probe(struct platform_device *ofdev)
t_alg = talitos_alg_alloc(dev, &driver_algs[i]);
if (IS_ERR(t_alg)) {
err = PTR_ERR(t_alg);
if (err == -ENOTSUPP) {
kfree(t_alg);
if (err == -ENOTSUPP)
continue;
}
goto err_out;
}

Expand Down

0 comments on commit 9515ad4

Please sign in to comment.