diff options
| author | Julien Charbon <jch@FreeBSD.org> | 2016-11-24 14:48:46 +0000 |
|---|---|---|
| committer | Julien Charbon <jch@FreeBSD.org> | 2016-11-24 14:48:46 +0000 |
| commit | cf08966db124bf0c5e98245d5f83d2df38481366 (patch) | |
| tree | 3cfb7702bb0aeaf23d9b6562d3f81192fd2bc65b /sys/netinet6 | |
| parent | ab1f5635b3234000cf68ca27343a6e2273403565 (diff) | |
Notes
Diffstat (limited to 'sys/netinet6')
| -rw-r--r-- | sys/netinet6/in6_pcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index 907496b338b8..139a83dca92c 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -768,7 +768,7 @@ in6_pcbpurgeif0(struct inpcbinfo *pcbinfo, struct ifnet *ifp) struct ip6_moptions *im6o; int i, gap; - INP_INFO_RLOCK(pcbinfo); + INP_INFO_WLOCK(pcbinfo); LIST_FOREACH(in6p, pcbinfo->ipi_listhead, inp_list) { INP_WLOCK(in6p); im6o = in6p->in6p_moptions; @@ -799,7 +799,7 @@ in6_pcbpurgeif0(struct inpcbinfo *pcbinfo, struct ifnet *ifp) } INP_WUNLOCK(in6p); } - INP_INFO_RUNLOCK(pcbinfo); + INP_INFO_WUNLOCK(pcbinfo); } /* |
