patch-2.3.99-pre7 linux/net/core/dev.c
Next file: linux/net/core/dst.c
Previous file: linux/net/bridge/br_stp_timer.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Mon May 8 22:21:58 2000
- Orig file:
v2.3.99-pre6/linux/net/core/dev.c
- Orig date:
Wed Apr 26 16:34:09 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/net/core/dev.c linux/net/core/dev.c
@@ -453,13 +453,12 @@
struct net_device *dev_alloc(const char *name, int *err)
{
- struct net_device *dev=kmalloc(sizeof(struct net_device)+16, GFP_KERNEL);
+ struct net_device *dev=kmalloc(sizeof(struct net_device), GFP_KERNEL);
if (dev == NULL) {
*err = -ENOBUFS;
return NULL;
}
memset(dev, 0, sizeof(struct net_device));
- dev->name = (char *)(dev + 1); /* Name string space */
*err = dev_alloc_name(dev, name);
if (*err < 0) {
kfree(dev);
@@ -851,7 +850,7 @@
/*=======================================================================
- Receiver rotutines
+ Receiver routines
=======================================================================*/
int netdev_max_backlog = 300;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)