git: 45d5b9f0324a - main - cxgbe/t4_tom: Plug an stid leak.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 08 Dec 2024 05:59:07 UTC
The branch main has been updated by np:
URL: https://cgit.FreeBSD.org/src/commit/?id=45d5b9f0324a13df06712b7a9df5f2fbe8475764
commit 45d5b9f0324a13df06712b7a9df5f2fbe8475764
Author: Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2024-12-08 03:34:30 +0000
Commit: Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2024-12-08 05:54:30 +0000
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
---
sys/dev/cxgbe/tom/t4_listen.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/dev/cxgbe/tom/t4_listen.c b/sys/dev/cxgbe/tom/t4_listen.c
index c63c2565e743..06c495dcafc3 100644
--- a/sys/dev/cxgbe/tom/t4_listen.c
+++ b/sys/dev/cxgbe/tom/t4_listen.c
@@ -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);
}