Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44376
b: refs/heads/master
c: 0268bd0
h: refs/heads/master
v: v3
  • Loading branch information
Yan Burman authored and Adrian Bunk committed Dec 12, 2006
1 parent e2d65ad commit 4c478df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 47c6bf7760bb8021bf7782f05bcd3b9f73ed2c2e
refs/heads/master: 0268bd0a807fc5cc41ced9cce95efe1b43e8fa52
3 changes: 1 addition & 2 deletions trunk/arch/um/drivers/net_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,12 @@ static int eth_configure(int n, void *init, char *mac,
size = transport->private_size + sizeof(struct uml_net_private) +
sizeof(((struct uml_net_private *) 0)->user);

device = kmalloc(sizeof(*device), GFP_KERNEL);
device = kzalloc(sizeof(*device), GFP_KERNEL);
if (device == NULL) {
printk(KERN_ERR "eth_configure failed to allocate uml_net\n");
return(1);
}

memset(device, 0, sizeof(*device));
INIT_LIST_HEAD(&device->list);
device->index = n;

Expand Down

0 comments on commit 4c478df

Please sign in to comment.