svn commit: r195090 - user/kmacy/releng_7_2_fcs/sys/net
Kip Macy
kmacy at FreeBSD.org
Sat Jun 27 04:56:36 UTC 2009
Author: kmacy
Date: Sat Jun 27 04:56:35 2009
New Revision: 195090
URL: http://svn.freebsd.org/changeset/base/195090
Log:
replace tree internal RT_REMREF with KASSERT + explicit assignment
Modified:
user/kmacy/releng_7_2_fcs/sys/net/route.c
Modified: user/kmacy/releng_7_2_fcs/sys/net/route.c
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/net/route.c Sat Jun 27 02:20:31 2009 (r195089)
+++ user/kmacy/releng_7_2_fcs/sys/net/route.c Sat Jun 27 04:56:35 2009 (r195090)
@@ -1343,7 +1343,9 @@ rtinit1(struct ifaddr *ifa, int cmd, int
* We just wanted to add it..
* we don't actually need a reference.
*/
- RT_REMREF(rt);
+ KASSERT(rt->rt_refcnt == 1,
+ ("invalid refcnt %d", rt->rt_refcnt));
+ rt->rt_refcnt = 0;
}
RT_UNLOCK(rt);
}
More information about the svn-src-user
mailing list