patch-2.3.21 linux/drivers/net/arcnet.c
Next file: linux/drivers/net/cosa.c
Previous file: linux/drivers/net/Space.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Oct 11 10:10:19 1999
- Orig file:
v2.3.20/linux/drivers/net/arcnet.c
- Orig date:
Tue Aug 31 17:29:14 1999
diff -u --recursive --new-file v2.3.20/linux/drivers/net/arcnet.c linux/drivers/net/arcnet.c
@@ -474,10 +474,12 @@
lp->sdev=(struct net_device *)kmalloc(sizeof(struct net_device)+10,GFP_KERNEL);
if(lp->sdev == NULL)
{
+#ifdef CONFIG_ARCNET_ETH
if(lp->edev)
kfree(lp->edev);
lp->edev=NULL;
return -ENOMEM;
+#endif
}
memcpy(lp->sdev,dev,sizeof(struct net_device));
lp->sdev->name=(char *)(lp+1);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)