Date: Sat, 20 Dec 2008 19:45:22 +0000 (UTC) From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r186364 - in releng/7.1/sys: . contrib/pf dev/cxgb netinet Message-ID: <200812201945.mBKJjMk4012631@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: csjp Date: Sat Dec 20 19:45:22 2008 New Revision: 186364 URL: http://svn.freebsd.org/changeset/base/186364 Log: MFC revision 185713 from head. Make sure we are maintaining the reference count on the route eliminating another: rtfree: 0xc841ee88 has 1 refs Reviewed by: bz Approved by: re@ (gnn) Modified: releng/7.1/sys/ (props changed) releng/7.1/sys/contrib/pf/ (props changed) releng/7.1/sys/dev/cxgb/ (props changed) releng/7.1/sys/netinet/if_ether.c Modified: releng/7.1/sys/netinet/if_ether.c ============================================================================== --- releng/7.1/sys/netinet/if_ether.c Sat Dec 20 19:39:09 2008 (r186363) +++ releng/7.1/sys/netinet/if_ether.c Sat Dec 20 19:45:22 2008 (r186364) @@ -909,12 +909,12 @@ reply: * over who claims what Ether address. */ if (rt->rt_ifp == ifp) { - rtfree(rt); + RTFREE_LOCKED(rt); goto drop; } (void)memcpy(ar_tha(ah), ar_sha(ah), ah->ar_hln); (void)memcpy(ar_sha(ah), enaddr, ah->ar_hln); - rtfree(rt); + RTFREE_LOCKED(rt); /* * Also check that the node which sent the ARP packet @@ -933,10 +933,10 @@ reply: " from %s via %s, expecting %s\n", inet_ntoa(isaddr), ifp->if_xname, rt->rt_ifp->if_xname); - rtfree(rt); + RTFREE_LOCKED(rt); goto drop; } - rtfree(rt); + RTFREE_LOCKED(rt); #ifdef DEBUG_PROXY printf("arp: proxying for %s\n",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812201945.mBKJjMk4012631>