svn commit: r195088 - user/kmacy/releng_7_2_fcs/sys/netinet6
Kip Macy
kmacy at FreeBSD.org
Sat Jun 27 01:01:07 UTC 2009
Author: kmacy
Date: Sat Jun 27 01:01:06 2009
New Revision: 195088
URL: http://svn.freebsd.org/changeset/base/195088
Log:
don't call RT_REMREF when we may hold the only reference
Modified:
user/kmacy/releng_7_2_fcs/sys/netinet6/nd6_rtr.c
Modified: user/kmacy/releng_7_2_fcs/sys/netinet6/nd6_rtr.c
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/netinet6/nd6_rtr.c Sat Jun 27 00:52:28 2009 (r195087)
+++ user/kmacy/releng_7_2_fcs/sys/netinet6/nd6_rtr.c Sat Jun 27 01:01:06 2009 (r195088)
@@ -1650,11 +1650,8 @@ nd6_prefix_onlink(struct nd_prefix *pr)
ip6_sprintf(ip6bufm, &mask6.sin6_addr), rtflags, error));
}
- if (rt != NULL) {
- RT_LOCK(rt);
- RT_REMREF(rt);
- RT_UNLOCK(rt);
- }
+ if (rt != NULL)
+ RTFREE(rt);
return (error);
}
More information about the svn-src-user
mailing list