From c0641cc03bff53331c6b419bc6decf730047ac7f Mon Sep 17 00:00:00 2001 From: Kip Macy Date: Tue, 16 Dec 2008 00:18:04 +0000 Subject: [PATCH] unlock looked up llentrys in defrouter_select --- sys/netinet6/nd6_rtr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c index 7b4af3cc73bd..b5811f087dbd 100644 --- a/sys/netinet6/nd6_rtr.c +++ b/sys/netinet6/nd6_rtr.c @@ -653,6 +653,8 @@ defrouter_select(void) selected_dr = dr; } IF_AFDATA_UNLOCK(dr->ifp); + if (ln != NULL) + LLE_RUNLOCK(ln); if (dr->installed && installed_dr == NULL) installed_dr = dr; @@ -683,6 +685,8 @@ defrouter_select(void) selected_dr = installed_dr; } IF_AFDATA_UNLOCK(installed_dr->ifp); + if (ln != NULL) + LLE_RUNLOCK(ln); } /*