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

Next file: linux/drivers/net/loopback.c
Previous file: linux/drivers/cdrom/mcdx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file pre2.0.7/linux/drivers/net/de4x5.c linux/drivers/net/de4x5.c
@@ -2642,7 +2642,9 @@
 
     ret = lp->rx_skb[index];
     lp->rx_skb[index] = p;
-    skb_put(ret, len);
+
+    if ((unsigned long) ret > 1)
+	    skb_put(ret, len);
 
     return ret;
 

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