Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150589
b: refs/heads/master
c: b61b8af
h: refs/heads/master
i:
  150587: 53292ac
v: v3
  • Loading branch information
Rémi Denis-Courmont authored and David S. Miller committed Jun 2, 2009
1 parent 5d48d69 commit 501792d
Show file tree
Hide file tree
Showing 2 changed files with 5 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: c69367fd6730a330c4ba54e9e699733439cbbabd
refs/heads/master: b61b8af0f3883b451bb9c3b3eaea4379aca9f36f
9 changes: 4 additions & 5 deletions trunk/drivers/usb/gadget/f_phonet.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,10 @@ static struct net_device *dev;
int __init phonet_bind_config(struct usb_configuration *c)
{
struct f_phonet *fp;
int err;
int err, size;

fp = kzalloc(sizeof(*fp), GFP_KERNEL);
size = sizeof(*fp) + (phonet_rxq_size * sizeof(struct usb_request *));
fp = kzalloc(size, GFP_KERNEL);
if (!fp)
return -ENOMEM;

Expand All @@ -596,9 +597,7 @@ int __init gphonet_setup(struct usb_gadget *gadget)

/* Create net device */
BUG_ON(dev);
dev = alloc_netdev(sizeof(*port)
+ (phonet_rxq_size * sizeof(struct usb_request *)),
"upnlink%d", pn_net_setup);
dev = alloc_netdev(sizeof(*port), "upnlink%d", pn_net_setup);
if (!dev)
return -ENOMEM;

Expand Down

0 comments on commit 501792d

Please sign in to comment.