patch-2.3.99-pre7 linux/drivers/net/wan/comx.c

Next file: linux/drivers/net/wan/cosa.c
Previous file: linux/drivers/net/via-rhine.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/net/wan/comx.c linux/drivers/net/wan/comx.c
@@ -877,7 +877,7 @@
 		return -ENOMEM;
 	}
 	memset(dev, 0, sizeof(struct net_device));
-	dev->name = (char *)new_dir->name;
+	strcpy(dev->name, (char *)new_dir->name);
 	dev->init = comx_init_dev;
 
 	if (register_netdevice(dev)) {

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