Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317982
b: refs/heads/master
c: c2a1793
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent 2c820a1 commit 9e0247b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: 8df858ea76b76dde9a39d4edd9aaded983582cfe
refs/heads/master: c2a1793d1b2dedd3dfc33af00c6b1d4f050c040c
7 changes: 2 additions & 5 deletions trunk/drivers/staging/gdm72xx/gdm_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -664,20 +664,17 @@ static int sdio_wimax_probe(struct sdio_func *func,
if (ret)
return ret;

phy_dev = kmalloc(sizeof(*phy_dev), GFP_KERNEL);
phy_dev = kzalloc(sizeof(*phy_dev), GFP_KERNEL);
if (phy_dev == NULL) {
ret = -ENOMEM;
goto out;
}
sdev = kmalloc(sizeof(*sdev), GFP_KERNEL);
sdev = kzalloc(sizeof(*sdev), GFP_KERNEL);
if (sdev == NULL) {
ret = -ENOMEM;
goto out;
}

memset(phy_dev, 0, sizeof(*phy_dev));
memset(sdev, 0, sizeof(*sdev));

phy_dev->priv_dev = (void *)sdev;
phy_dev->send_func = gdm_sdio_send;
phy_dev->rcv_func = gdm_sdio_receive;
Expand Down

0 comments on commit 9e0247b

Please sign in to comment.