patch-2.1.86 linux/net/ipv6/udp.c

Next file: linux/net/ipx/af_ipx.c
Previous file: linux/net/ipv6/tcp_ipv6.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.85/linux/net/ipv6/udp.c linux/net/ipv6/udp.c
@@ -402,7 +402,7 @@
 		ipv6_statistics.Ip6InDiscards++;
 		ipv6_statistics.Ip6InDelivers--;
 		skb->sk = NULL;
-		kfree_skb(skb, FREE_WRITE);
+		kfree_skb(skb);
 		return 0;
 	}
 	udp_stats_in6.UdpInDatagrams++;
@@ -467,13 +467,13 @@
 			struct sk_buff *buff = skb_clone(skb, GFP_ATOMIC);
 			if(sock_queue_rcv_skb(sk, buff) < 0) {
 				buff->sk = NULL;
-				kfree_skb(buff, FREE_READ);
+				kfree_skb(buff);
 			}
 		}
 	}
 	if(!sk || sock_queue_rcv_skb(sk, skb) < 0) {
 		skb->sk = NULL;
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 	}
 }
 
@@ -500,7 +500,7 @@
 	if (ulen > len || len < sizeof(*uh)) {
 		printk(KERN_DEBUG "UDP: short packet: %d/%d\n", ulen, len);
 		udp_stats_in6.UdpInErrors++;
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return(0);
 	}
 
@@ -543,7 +543,7 @@
 
 		icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0, dev);
 		
-		kfree_skb(skb, FREE_READ);
+		kfree_skb(skb);
 		return(0);
 	}
 
@@ -558,7 +558,7 @@
 
 discard:
 	udp_stats_in6.UdpInErrors++;
-	kfree_skb(skb, FREE_READ);
+	kfree_skb(skb);
 	return(0);	
 }
 

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