Defer inpcbport free in in_pcbremlists as well
This commit is contained in:
parent
6362b1a6b1
commit
700e893c34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335021
@ -2680,7 +2680,7 @@ in_pcbremlists(struct inpcb *inp)
|
|||||||
CK_LIST_REMOVE(inp, inp_portlist);
|
CK_LIST_REMOVE(inp, inp_portlist);
|
||||||
if (CK_LIST_FIRST(&phd->phd_pcblist) == NULL) {
|
if (CK_LIST_FIRST(&phd->phd_pcblist) == NULL) {
|
||||||
CK_LIST_REMOVE(phd, phd_hash);
|
CK_LIST_REMOVE(phd, phd_hash);
|
||||||
free(phd, M_PCB);
|
epoch_call(net_epoch_preempt, &phd->phd_epoch_ctx, inpcbport_free);
|
||||||
}
|
}
|
||||||
INP_HASH_WUNLOCK(pcbinfo);
|
INP_HASH_WUNLOCK(pcbinfo);
|
||||||
inp->inp_flags &= ~INP_INHASHLIST;
|
inp->inp_flags &= ~INP_INHASHLIST;
|
||||||
|
Loading…
Reference in New Issue
Block a user