patch-2.3.51 linux/drivers/net/wan/cosa.c
Next file: linux/drivers/net/wavelan.c
Previous file: linux/drivers/net/wan/Config.in
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Wed Mar 8 10:18:25 2000
- Orig file:
v2.3.50/linux/drivers/net/wan/cosa.c
- Orig date:
Sat Feb 26 22:31:47 2000
diff -u --recursive --new-file v2.3.50/linux/drivers/net/wan/cosa.c linux/drivers/net/wan/cosa.c
@@ -1,4 +1,4 @@
-/* $Id: cosa.c,v 1.30 2000/02/21 15:19:49 kas Exp $ */
+/* $Id: cosa.c,v 1.31 2000/03/08 17:47:16 kas Exp $ */
/*
* Copyright (C) 1995-1997 Jan "Yenya" Kasprzak <kas@fi.muni.cz>
@@ -373,7 +373,7 @@
{
int i;
- printk(KERN_INFO "cosa v1.07 (c) 1997-2000 Jan Kasprzak <kas@fi.muni.cz>\n");
+ printk(KERN_INFO "cosa v1.08 (c) 1997-2000 Jan Kasprzak <kas@fi.muni.cz>\n");
#ifdef __SMP__
printk(KERN_INFO "cosa: SMP found. Please mail any success/failure reports to the author.\n");
#endif
@@ -584,6 +584,7 @@
struct net_device *d;
chan->if_ptr = &chan->pppdev;
chan->pppdev.dev = kmalloc(sizeof(struct net_device), GFP_KERNEL);
+ memset(chan->pppdev.dev, 0, sizeof(struct net_device));
sppp_attach(&chan->pppdev);
d=chan->pppdev.dev;
d->name = chan->name;
@@ -599,7 +600,6 @@
d->get_stats = cosa_net_stats;
d->tx_timeout = cosa_sppp_timeout;
d->watchdog_timeo = TX_TIMEOUT;
- dev_init_buffers(d);
if (register_netdev(d) == -1) {
printk(KERN_WARNING "%s: register_netdev failed.\n", d->name);
sppp_detach(chan->pppdev.dev);
@@ -757,7 +757,7 @@
chan->stats.tx_aborted_errors++;
return 1;
}
- dev_kfree_skb(chan->tx_skb);
+ dev_kfree_skb_irq(chan->tx_skb);
chan->tx_skb = 0;
chan->stats.tx_packets++;
chan->stats.tx_bytes += size;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)