cxgbe/t4_tom: Plug an stid leak.

Normally the reply to destroy_server() releases the listen context but
it is not called when the adapter is suspended.  Release the context
right away in that case.

MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
Navdeep Parhar
2024-12-07 19:34:30 -08:00
parent c3d2c959b5
commit 45d5b9f032
+2
View File
@@ -769,6 +769,8 @@ t4_listen_stop(struct toedev *tod, struct tcpcb *tp)
if (lctx->flags & LCTX_SETUP_IN_HW)
destroy_server(sc, lctx);
else
inp = release_lctx(sc, lctx);
return (0);
}