patch-2.1.90 linux/include/net/ip6_route.h

Next file: linux/include/net/ipv6.h
Previous file: linux/include/net/dst.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.89/linux/include/net/ip6_route.h linux/include/net/ip6_route.h
@@ -114,7 +114,7 @@
 	struct rt6_info *rt;
 		
 	np = &sk->net_pinfo.af_inet6;
-	sk->dst_cache = dst;
+	dst_release(xchg(&sk->dst_cache,dst));
 	
 	rt = (struct rt6_info *) dst;
 	

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