Add a missing unlock for the inp lock when

returning early from sctp_add_to_readq().

Approved by: re, rrs (mentor)
MFC after: 2 weeks.
This commit is contained in:
Michael Tuexen 2009-07-26 15:06:59 +00:00
parent b06555e4fc
commit 47a490cbbc

View File

@ -4362,6 +4362,7 @@ sctp_add_to_readq(struct sctp_inpcb *inp,
control->tail_mbuf = prev;
} else {
/* Everything got collapsed out?? */
SCTP_INP_READ_UNLOCK(inp);
return;
}
if (end) {