patch-pre2.0.10 linux/drivers/net/de4x5.c

Next file: linux/drivers/sound/pss.c
Previous file: linux/drivers/isdn/teles/llglue.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.9/linux/drivers/net/de4x5.c linux/drivers/net/de4x5.c
@@ -2675,7 +2675,7 @@
     int i;
 
     for (i=0; i<lp->rxRingSize; i++) {
-	if (lp->rx_skb[i]) {
+	if ((unsigned long) lp->rx_skb[i] > 1) {
 	    dev_kfree_skb(lp->rx_skb[i], FREE_WRITE);
 	}
 	lp->rx_ring[i].status = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this