Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 95711
b: refs/heads/master
c: b1145ce
h: refs/heads/master
i:
  95709: 1433df4
  95707: 9e492ac
  95703: c2960ee
  95695: 912e054
  95679: 7c9bc77
v: v3
  • Loading branch information
Julia Lawall authored and Herbert Xu committed May 1, 2008
1 parent a6e1da4 commit ead2aba
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 46f8153cc59384eb09a426d044668d4801f818ce
refs/heads/master: b1145ce395f7785487c128fe8faf8624e6586d84
4 changes: 3 additions & 1 deletion trunk/crypto/cryptd.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ static struct crypto_instance *cryptd_alloc_instance(struct crypto_alg *alg,
int err;

inst = kzalloc(sizeof(*inst) + sizeof(*ctx), GFP_KERNEL);
if (IS_ERR(inst))
if (!inst) {
inst = ERR_PTR(-ENOMEM);
goto out;
}

err = -ENAMETOOLONG;
if (snprintf(inst->alg.cra_driver_name, CRYPTO_MAX_ALG_NAME,
Expand Down

0 comments on commit ead2aba

Please sign in to comment.