Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195276
b: refs/heads/master
c: 49afa55
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and David S. Miller committed May 18, 2010
1 parent ebf2614 commit 13f72c5
Show file tree
Hide file tree
Showing 3 changed files with 3 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: beae22e6f393c461ee7fb394dbf06fa50157836b
refs/heads/master: 49afa55b5bd792cda4fca15d3238e9b6f370c856
3 changes: 1 addition & 2 deletions trunk/net/caif/cfcnfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,11 @@ struct cfcnfg *cfcnfg_create(void)
struct cfcnfg *this;
struct cfctrl_rsp *resp;
/* Initiate this layer */
this = kmalloc(sizeof(struct cfcnfg), GFP_ATOMIC);
this = kzalloc(sizeof(struct cfcnfg), GFP_ATOMIC);
if (!this) {
pr_warning("CAIF: %s(): Out of memory\n", __func__);
return NULL;
}
memset(this, 0, sizeof(struct cfcnfg));
this->mux = cfmuxl_create();
if (!this->mux)
goto out_of_mem;
Expand Down
3 changes: 1 addition & 2 deletions trunk/net/caif/cfctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,12 +284,11 @@ int cfctrl_linkup_request(struct cflayer *layer,
__func__, param->linktype);
return -EINVAL;
}
req = kmalloc(sizeof(*req), GFP_KERNEL);
req = kzalloc(sizeof(*req), GFP_KERNEL);
if (!req) {
pr_warning("CAIF: %s(): Out of memory\n", __func__);
return -ENOMEM;
}
memset(req, 0, sizeof(*req));
req->client_layer = user_layer;
req->cmd = CFCTRL_CMD_LINK_SETUP;
req->param = *param;
Expand Down

0 comments on commit 13f72c5

Please sign in to comment.