sctp: improve consistency

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2023-08-05 11:29:23 +02:00
parent e3771cc034
commit 10b2b30670

View file

@ -6118,7 +6118,7 @@ get_more_data:
if (SCTP_BASE_SYSCTL(sctp_logging_level) & SCTP_SB_LOGGING_ENABLE) {
sctp_sblog(&so->so_rcv, control->do_not_ref_stcb ? NULL : stcb, SCTP_LOG_SBFREE, (int)cp_len);
}
SCTP_SB_DECR(&so->so_rcv, (int)cp_len);
SCTP_SB_DECR(&so->so_rcv, cp_len);
if ((control->do_not_ref_stcb == 0) &&
stcb) {
atomic_subtract_int(&stcb->asoc.sb_cc, (int)cp_len);