patch-2.1.86 linux/net/sched/sch_red.c

Next file: linux/net/sched/sch_sfq.c
Previous file: linux/net/sched/sch_generic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/net/sched/sch_red.c linux/net/sched/sch_red.c
@@ -189,7 +189,7 @@
 			return 1;
 		}
 drop:
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 		return 0;
 	}
 	if (q->qave >= q->qth_max) {
@@ -231,7 +231,7 @@
 
 	while((skb=skb_dequeue(&sch->q))!=NULL) {
 		q->qbytes -= skb->len;
-		kfree_skb(skb,FREE_WRITE);
+		kfree_skb(skb);
 	}
 	if (q->qbytes) {
 		printk("red_reset: qbytes=%lu\n", q->qbytes);

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