patch-2.3.24 linux/net/core/dev.c

Next file: linux/net/decnet/Config.in
Previous file: linux/mm/vmscan.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/net/core/dev.c linux/net/core/dev.c
@@ -374,6 +374,7 @@
 		*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)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)