Remove a test which is unsafe
@@ -14784,13 +14784,6 @@ out_unlocked:
if (free_cnt_applied) {
atomic_subtract_int(&asoc->refcnt, 1);
}
-#ifdef INVARIANTS
-#if defined(__FreeBSD__) && !defined(__Userspace__)
- if (mtx_owned(&stcb->tcb_mtx)) {
- panic("Leaving with tcb mtx owned?");
- }
-#endif
-#endif
}
if (top != NULL) {
sctp_m_freem(top);
