The fix is only needed in userspace.
@@ -13342,9 +13342,13 @@ sctp_copy_it_in(struct sctp_tcb *stcb,
#endif
skip_copy:
if (*error) {
+#if defined(__Userspace__)
SCTP_TCB_LOCK(stcb);
+#endif
sctp_free_a_strmoq(stcb, sp, SCTP_SO_LOCKED);
+#if defined(__Userspace__)
SCTP_TCB_UNLOCK(stcb);
+#endif
sp = NULL;
} else {
if (sp->sinfo_flags & SCTP_ADDR_OVER) {
