patch-2.4.0-test7 linux/drivers/net/smc9194.c
Next file: linux/drivers/net/starfire.c
Previous file: linux/drivers/net/pppoe.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Tue Aug 22 08:59:00 2000
- Orig file:
v2.4.0-test6/linux/drivers/net/smc9194.c
- Orig date:
Thu Jul 27 17:38:00 2000
diff -u --recursive --new-file v2.4.0-test6/linux/drivers/net/smc9194.c linux/drivers/net/smc9194.c
@@ -18,6 +18,8 @@
.
. author:
. Erik Stahlman ( erik@vt.edu )
+ . contributors:
+ . Arnaldo Carvalho de Melo <acme@conectiva.com.br>
.
. Hardware multicast code from Peter Cammaert ( pc@denkart.be )
.
@@ -47,6 +49,7 @@
. 03/06/96 Erik Stahlman Added hardware multicast from Peter Cammaert
. 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
----------------------------------------------------------------------------*/
static const char *version =
@@ -623,7 +626,7 @@
if ( packet_no & 0x80 ) {
/* or isn't there? BAD CHIP! */
printk(KERN_DEBUG CARDNAME": Memory allocation failed. \n");
- kfree(skb);
+ kfree_skb(skb);
lp->saved_skb = NULL;
netif_wake_queue(dev);
return;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)