Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233655
b: refs/heads/master
c: 0a93ea2
h: refs/heads/master
i:
  233653: 2c4b8f4
  233651: 39e1fca
  233647: 31034df
v: v3
  • Loading branch information
Anton Blanchard authored and Linus Torvalds committed Feb 25, 2011
1 parent 31e79a3 commit 7c5372b
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: f129ccc9231c95513a1227ca9da876beeb03e577
refs/heads/master: 0a93ea2e897bd793cc0aaaddc397eff32ac8d6fe
8 changes: 4 additions & 4 deletions trunk/net/rxrpc/ar-key.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ static int rxrpc_instantiate_xdr_rxkad(struct key *key, const __be32 *xdr,
return ret;

plen -= sizeof(*token);
token = kmalloc(sizeof(*token), GFP_KERNEL);
token = kzalloc(sizeof(*token), GFP_KERNEL);
if (!token)
return -ENOMEM;

token->kad = kmalloc(plen, GFP_KERNEL);
token->kad = kzalloc(plen, GFP_KERNEL);
if (!token->kad) {
kfree(token);
return -ENOMEM;
Expand Down Expand Up @@ -731,10 +731,10 @@ static int rxrpc_instantiate(struct key *key, const void *data, size_t datalen)
goto error;

ret = -ENOMEM;
token = kmalloc(sizeof(*token), GFP_KERNEL);
token = kzalloc(sizeof(*token), GFP_KERNEL);
if (!token)
goto error;
token->kad = kmalloc(plen, GFP_KERNEL);
token->kad = kzalloc(plen, GFP_KERNEL);
if (!token->kad)
goto error_free;

Expand Down

0 comments on commit 7c5372b

Please sign in to comment.