patch-2.4.0-test4 linux/drivers/net/appletalk/ipddp.c

Next file: linux/drivers/net/arlan.c
Previous file: linux/drivers/net/am79c961a.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/drivers/net/appletalk/ipddp.c linux/drivers/net/appletalk/ipddp.c
@@ -122,10 +122,10 @@
 	/* Initalize the device structure. */
         dev->hard_start_xmit = ipddp_xmit;
 
-        dev->priv = kmalloc(sizeof(struct enet_statistics), GFP_KERNEL);
+        dev->priv = kmalloc(sizeof(struct net_device_stats), GFP_KERNEL);
         if(!dev->priv)
                 return -ENOMEM;
-        memset(dev->priv,0,sizeof(struct enet_statistics));
+        memset(dev->priv,0,sizeof(struct net_device_stats));
 
 	dev->open 	    = ipddp_open;
         dev->stop 	    = ipddp_close;

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