patch-2.0.26 linux/drivers/net/loopback.c
Next file: linux/drivers/net/tulip.c
Previous file: linux/drivers/net/ewrk3.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Thu Nov 14 15:20:10 1996
- Orig file:
v2.0.25/linux/drivers/net/loopback.c
- Orig date:
Mon May 27 13:12:19 1996
diff -u --recursive --new-file v2.0.25/linux/drivers/net/loopback.c linux/drivers/net/loopback.c
@@ -20,6 +20,8 @@
* Michael Griffith: Don't bother computing the checksums
* on packets received on the loopback
* interface.
+ * Alexey Kuznetsov: Potential hang under some extreme
+ * cases removed.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -73,9 +75,9 @@
{
struct sk_buff *skb2=skb;
skb=skb_clone(skb, GFP_ATOMIC); /* Clone the buffer */
- if(skb==NULL)
- return 1;
dev_kfree_skb(skb2, FREE_WRITE);
+ if(skb==NULL)
+ return 0;
unlock=0;
}
else if(skb->sk)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov