diff options
author | kmacy <kmacy@FreeBSD.org> | 2008-12-16 01:58:30 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2008-12-16 01:58:30 +0000 |
commit | 0b5a9dada12dde838a64bac4da7e0449ce0ab566 (patch) | |
tree | 98801f3779dd87dcbefc7ce7d57da43686b17ac4 /sys/netinet6 | |
parent | 325d9e1d231cb5eacf1b6084a51541e4f4b21f4f (diff) | |
download | FreeBSD-src-0b5a9dada12dde838a64bac4da7e0449ce0ab566.zip FreeBSD-src-0b5a9dada12dde838a64bac4da7e0449ce0ab566.tar.gz |
unlock the llentry after use in find_pfxlist_reachable_router
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/nd6_rtr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index b5811f0..6c4f145 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -1336,9 +1336,10 @@ find_pfxlist_reachable_router(struct nd_prefix *pr) if ((ln = nd6_lookup(&pfxrtr->router->rtaddr, 0, pfxrtr->router->ifp)) && ND6_IS_LLINFO_PROBREACH(ln)) { - IF_AFDATA_UNLOCK(pfxrtr->router->ifp); + LLE_RUNLOCK(ln); break; /* found */ } + LLE_RUNLOCK(ln); IF_AFDATA_UNLOCK(pfxrtr->router->ifp); } return (pfxrtr); |