MFC 292953:

This code is not in modules that need KPI stability so no need to use
 the wrapper functions as used in r252511 (head).  We can directly use
 the locking macros.
This commit is contained in:
bz 2016-01-21 14:11:01 +00:00
parent c9c2f75c5c
commit e8ebbaf6da

View File

@ -2003,7 +2003,7 @@ in6ifa_llaonifp(struct ifnet *ifp)
if (ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED)
return (NULL);
if_addr_rlock(ifp);
IF_ADDR_RLOCK(ifp);
TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
if (ifa->ifa_addr->sa_family != AF_INET6)
continue;
@ -2013,7 +2013,7 @@ in6ifa_llaonifp(struct ifnet *ifp)
IN6_IS_ADDR_MC_NODELOCAL(&sin6->sin6_addr))
break;
}
if_addr_runlock(ifp);
IF_ADDR_RUNLOCK(ifp);
return ((struct in6_ifaddr *)ifa);
}