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

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, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])