Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18927
b: refs/heads/master
c: e56a788
h: refs/heads/master
i:
  18925: 95be846
  18923: ac315b7
  18919: 47a6875
  18911: e8906c1
v: v3
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Jan 19, 2006
1 parent 3602962 commit 2419575
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: c42791b6ec5453cd7910eac7bfdd88f27173f81c
refs/heads/master: e56a78855a4f72fc658bfd21d08939dd6e09fa4c
6 changes: 5 additions & 1 deletion trunk/arch/um/drivers/net_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ static int eth_configure(int n, void *init, char *mac,
return 1;
}

lp = dev->priv;
/* This points to the transport private data. It's still clear, but we
* must memset it to 0 *now*. Let's help the drivers. */
memset(lp, 0, size);

/* sysfs register */
if (!driver_registered) {
platform_driver_register(&uml_net_driver);
Expand Down Expand Up @@ -358,7 +363,6 @@ static int eth_configure(int n, void *init, char *mac,
free_netdev(dev);
return 1;
}
lp = dev->priv;

/* lp.user is the first four bytes of the transport data, which
* has already been initialized. This structure assignment will
Expand Down

0 comments on commit 2419575

Please sign in to comment.