Skip to content

Commit

Permalink
unlock looked up llentrys in defrouter_select
Browse files Browse the repository at this point in the history
  • Loading branch information
kmacy committed Dec 16, 2008
1 parent 8cc0e3c commit 505bc29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sys/netinet6/nd6_rtr.c
Expand Up @@ -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;
Expand Down Expand Up @@ -683,6 +685,8 @@ defrouter_select(void)
selected_dr = installed_dr;
}
IF_AFDATA_UNLOCK(installed_dr->ifp);
if (ln != NULL)
LLE_RUNLOCK(ln);
}

/*
Expand Down

0 comments on commit 505bc29

Please sign in to comment.