Date: Sun, 23 Nov 2014 16:40:34 +0000 (UTC) From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r274919 - projects/routing/sys/netinet Message-ID: <201411231640.sANGeYZv056764@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: melifaro Date: Sun Nov 23 16:40:33 2014 New Revision: 274919 URL: https://svnweb.freebsd.org/changeset/base/274919 Log: Fix r274855: use proper unlock method. Modified: projects/routing/sys/netinet/in.c Modified: projects/routing/sys/netinet/in.c ============================================================================== --- projects/routing/sys/netinet/in.c Sun Nov 23 16:27:31 2014 (r274918) +++ projects/routing/sys/netinet/in.c Sun Nov 23 16:40:33 2014 (r274919) @@ -160,7 +160,7 @@ in_localaddr(struct in_addr in) IN_IFADDR_RUN_RLOCK(); TAILQ_FOREACH(ia, &V_in_ifaddrhead, ia_link) { if ((i & ia->ia_subnetmask) == ia->ia_subnet) { - IN_IFADDR_RUNLOCK(); + IN_IFADDR_RUN_RUNLOCK(); return (1); } } @@ -181,7 +181,7 @@ in_localip(struct in_addr in) IN_IFADDR_RUN_RLOCK(); LIST_FOREACH(ia, INADDR_HASH(in.s_addr), ia_hash) { if (IA_SIN(ia)->sin_addr.s_addr == in.s_addr) { - IN_IFADDR_RUNLOCK(); + IN_IFADDR_RUN_RUNLOCK(); return (1); } } @@ -204,7 +204,7 @@ in_localip_more(struct in_ifaddr *ia) LIST_FOREACH(it, INADDR_HASH(in), ia_hash) { if (it != ia && IA_SIN(it)->sin_addr.s_addr == in) { ifa_ref(&it->ia_ifa); - IN_IFADDR_RUNLOCK(); + IN_IFADDR_RUN_RUNLOCK(); return (it); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411231640.sANGeYZv056764>