svn commit: r368583 - stable/12/sys/dev/cxgbe/tom
John Baldwin
jhb at FreeBSD.org
Sat Dec 12 17:07:34 UTC 2020
Author: jhb
Date: Sat Dec 12 17:07:33 2020
New Revision: 368583
URL: https://svnweb.freebsd.org/changeset/base/368583
Log:
MFC 367578: Clear tp->tod in t4_pcb_detach().
Otherwise, a socket can have a non-NULL tp->tod while TF_TOE is clear.
In particular, if a newly accepted socket falls back to non-TOE due to
an active open failure, the non-TOE socket will still have tp->tod set
even though TF_TOE is clear.
Modified:
stable/12/sys/dev/cxgbe/tom/t4_tom.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/cxgbe/tom/t4_tom.c
==============================================================================
--- stable/12/sys/dev/cxgbe/tom/t4_tom.c Sat Dec 12 17:04:54 2020 (r368582)
+++ stable/12/sys/dev/cxgbe/tom/t4_tom.c Sat Dec 12 17:07:33 2020 (r368583)
@@ -381,6 +381,7 @@ t4_pcb_detach(struct toedev *tod __unused, struct tcpc
}
#endif
+ tp->tod = NULL;
tp->t_toe = NULL;
tp->t_flags &= ~TF_TOE;
toep->flags &= ~TPF_ATTACHED;
More information about the svn-src-stable-12
mailing list