Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 317980
b: refs/heads/master
c: 7fc03ad
h: refs/heads/master
v: v3
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Jul 17, 2012
1 parent be8a4c2 commit b6d9eb6
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: d67030d215ac1ec13cab16467904c2a7265e1fbd
refs/heads/master: 7fc03add26e1e1f0b375e905547e01da6cdc1599
7 changes: 2 additions & 5 deletions trunk/drivers/staging/gdm72xx/gdm_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,20 +590,17 @@ static int gdm_usb_probe(struct usb_interface *intf,
goto out;
}

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

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

if (idProduct == 0x7205 || idProduct == 0x7206)
udev->padding = GDM7205_PADDING;
else
Expand Down

0 comments on commit b6d9eb6

Please sign in to comment.