patch-2.1.86 linux/drivers/isdn/pcbit/layer2.c

Next file: linux/drivers/isdn/sc/packet.c
Previous file: linux/drivers/isdn/pcbit/drv.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/drivers/isdn/pcbit/layer2.c linux/drivers/isdn/pcbit/layer2.c
@@ -106,13 +106,13 @@
 	unsigned long flags;
 
 	if (dev->l2_state != L2_RUNNING && dev->l2_state != L2_LOADING) {
-		dev_kfree_skb(skb, FREE_WRITE);
+		dev_kfree_skb(skb);
 		return -1;
 	}
 	if ((frame = (struct frame_buf *) kmalloc(sizeof(struct frame_buf),
 						  GFP_ATOMIC)) == NULL) {
 		printk(KERN_WARNING "pcbit_2_write: kmalloc failed\n");
-		dev_kfree_skb(skb, FREE_WRITE);
+		dev_kfree_skb(skb);
 		return -1;
 	}
 	frame->msg = msg;
@@ -287,7 +287,7 @@
 
 			if (frame->skb != NULL) {
 				/* free frame */
-				dev_kfree_skb(frame->skb, FREE_WRITE);
+				dev_kfree_skb(frame->skb);
 			}
 			kfree(frame);
 		}
@@ -382,7 +382,7 @@
 			/* discard previous queued frame */
 			if (dev->read_frame->skb) {
 				SET_SKB_FREE(dev->read_frame->skb);
-				kfree_skb(dev->read_frame->skb, FREE_READ);
+				kfree_skb(dev->read_frame->skb);
 			}
 			kfree(dev->read_frame);
 			dev->read_frame = NULL;
@@ -650,7 +650,7 @@
 	if (dev->read_frame) {
 		if (dev->read_frame->skb) {
 			SET_SKB_FREE(dev->read_frame->skb);
-			kfree_skb(dev->read_frame->skb, FREE_READ);
+			kfree_skb(dev->read_frame->skb);
 		}
 		kfree(dev->read_frame);
 		dev->read_frame = NULL;
@@ -661,7 +661,7 @@
 		dev->write_queue = dev->write_queue->next;
 
 		if (frame->skb) {
-			dev_kfree_skb(frame->skb, FREE_WRITE);
+			dev_kfree_skb(frame->skb);
 		}
 		kfree(frame);
 #else

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