patch-2.0.36 linux/net/core/skbuff.c

Next file: linux/net/core/sock.c
Previous file: linux/net/core/firewall.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.0.35/linux/net/core/skbuff.c linux/net/core/skbuff.c
@@ -865,6 +865,11 @@
 	if(skb->lock==0)
 		net_locked--;
 	restore_flags(flags);
+
+        if (skb->free == 3) {
+            skb->free = 1;
+            kfree_skb(skb, FREE_WRITE);
+        }
 }
 
 void dev_kfree_skb(struct sk_buff *skb, int mode)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov