patch-2.4.0-prerelease linux/drivers/net/smc9194.c
Next file: linux/drivers/net/stnic.c
Previous file: linux/drivers/net/skfp/Makefile
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Fri Dec 29 14:07:22 2000
- Orig file:
v2.4.0-test12/linux/drivers/net/smc9194.c
- Orig date:
Mon Dec 11 17:59:44 2000
diff -u --recursive --new-file v2.4.0-test12/linux/drivers/net/smc9194.c linux/drivers/net/smc9194.c
@@ -50,10 +50,11 @@
. 04/14/00 Heiko Pruessing (SMA Regelsysteme) Fixed bug in chip memory
. allocation
. 08/20/00 Arnaldo Melo fix kfree(skb) in smc_hardware_send_packet
+ . 12/15/00 Christian Jullien fix "Warning: kfree_skb on hard IRQ"
----------------------------------------------------------------------------*/
static const char *version =
- "smc9194.c:v0.13 04/14/00 by Erik Stahlman (erik@vt.edu)\n";
+ "smc9194.c:v0.14 12/15/00 by Erik Stahlman (erik@vt.edu)\n";
#include <linux/module.h>
#include <linux/version.h>
@@ -615,7 +616,7 @@
if ( packet_no & 0x80 ) {
/* or isn't there? BAD CHIP! */
printk(KERN_DEBUG CARDNAME": Memory allocation failed. \n");
- dev_kfree_skb(skb);
+ dev_kfree_skb_irq(skb);
lp->saved_skb = NULL;
netif_wake_queue(dev);
return;
@@ -678,7 +679,7 @@
PRINTK2((CARDNAME": Sent packet of length %d \n",length));
lp->saved_skb = NULL;
- dev_kfree_skb (skb);
+ dev_kfree_skb_irq (skb);
dev->trans_start = jiffies;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)