patch-2.4.6 linux/net/atm/signaling.c

Next file: linux/net/ax25/ax25_in.c
Previous file: linux/net/atm/mpc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/net/atm/signaling.c linux/net/atm/signaling.c
@@ -211,14 +211,13 @@
 
 static void sigd_close(struct atm_vcc *vcc)
 {
-	struct sk_buff *skb;
 	struct atm_dev *dev;
 
 	DPRINTK("sigd_close\n");
 	sigd = NULL;
 	if (skb_peek(&vcc->recvq))
 		printk(KERN_ERR "sigd_close: closing with requests pending\n");
-	while ((skb = skb_dequeue(&vcc->recvq))) kfree_skb(skb);
+	skb_queue_purge(&vcc->recvq);
 	purge_vccs(nodev_vccs);
 
 	spin_lock (&atm_dev_lock);

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