svn commit: r212291 - stable/8/sys/netinet
Bjoern A. Zeeb
bz at FreeBSD.org
Tue Sep 7 13:10:46 UTC 2010
Author: bz
Date: Tue Sep 7 13:10:46 2010
New Revision: 212291
URL: http://svn.freebsd.org/changeset/base/212291
Log:
MFC r212209:
In case of RADIX_MPATH do not leak the IN_IFADDR read lock on
early return.
Modified:
stable/8/sys/netinet/in.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
stable/8/sys/dev/xen/xenpci/ (props changed)
Modified: stable/8/sys/netinet/in.c
==============================================================================
--- stable/8/sys/netinet/in.c Tue Sep 7 12:06:41 2010 (r212290)
+++ stable/8/sys/netinet/in.c Tue Sep 7 13:10:46 2010 (r212291)
@@ -1042,9 +1042,10 @@ in_addprefix(struct in_ifaddr *target, i
if (ia->ia_flags & IFA_ROUTE) {
#ifdef RADIX_MPATH
if (ia->ia_addr.sin_addr.s_addr ==
- target->ia_addr.sin_addr.s_addr)
+ target->ia_addr.sin_addr.s_addr) {
+ IN_IFADDR_RUNLOCK();
return (EEXIST);
- else
+ } else
break;
#endif
if (V_sameprefixcarponly &&
More information about the svn-src-stable-8
mailing list