Make sure the inp wasn't dropped when rexmt let go of the inp and

pcbinfo locks.

Reviewed by:	andre@
MFC after:	7 days
This commit is contained in:
Navdeep Parhar 2011-10-12 19:52:23 +00:00
parent 0e775b6d17
commit aa4b09c5c7

View File

@ -495,6 +495,13 @@ tcp_timer_rexmt(void * xtp)
CURVNET_RESTORE();
return;
}
if (inp->inp_flags & INP_DROPPED) {
INP_WUNLOCK(inp);
INP_INFO_WUNLOCK(&V_tcbinfo);
CURVNET_RESTORE();
return;
}
tp = tcp_drop(tp, tp->t_softerror ?
tp->t_softerror : ETIMEDOUT);
headlocked = 1;