Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277921
b: refs/heads/master
c: c796984
h: refs/heads/master
i:
  277919: d4559c2
v: v3
  • Loading branch information
Thomas Meyer authored and David S. Miller committed Nov 22, 2011
1 parent baa17d4 commit 711ad75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 26bff940dd975499c6c47438d4395d7d215911e8
refs/heads/master: c796984f2f1c528ac21220808525440d49413f8c
4 changes: 1 addition & 3 deletions trunk/drivers/net/usb/cdc_ncm.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,12 +465,10 @@ static int cdc_ncm_bind(struct usbnet *dev, struct usb_interface *intf)
int temp;
u8 iface_no;

ctx = kmalloc(sizeof(*ctx), GFP_KERNEL);
ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (ctx == NULL)
return -ENODEV;

memset(ctx, 0, sizeof(*ctx));

init_timer(&ctx->tx_timer);
spin_lock_init(&ctx->mtx);
ctx->netdev = dev->net;
Expand Down

0 comments on commit 711ad75

Please sign in to comment.