patch-2.4.6 linux/net/x25/x25_link.c

Next file: linux/net/x25/x25_subr.c
Previous file: linux/net/wanrouter/wanproc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/net/x25/x25_link.c linux/net/x25/x25_link.c
@@ -309,10 +309,8 @@
 {
 	struct x25_neigh *s;
 	unsigned long flags;
-	struct sk_buff *skb;
 
-	while ((skb = skb_dequeue(&x25_neigh->queue)) != NULL)
-		kfree_skb(skb);
+	skb_queue_purge(&x25_neigh->queue);
 
 	x25_stop_t20timer(x25_neigh);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)