git: 0e1d8481f93c - main - ktls: fix vnet-related panic in ktls_reset_receive_tag()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 11 Jan 2024 20:34:06 UTC
The branch main has been updated by mm: URL: https://cgit.FreeBSD.org/src/commit/?id=0e1d8481f93c58008c5a2ef68c3a46a0da83644a commit 0e1d8481f93c58008c5a2ef68c3a46a0da83644a Author: Martin Matuska <mm@FreeBSD.org> AuthorDate: 2024-01-11 20:31:15 +0000 Commit: Martin Matuska <mm@FreeBSD.org> CommitDate: 2024-01-11 20:32:29 +0000 ktls: fix vnet-related panic in ktls_reset_receive_tag() Reviewed by: gallatin, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43400 --- sys/kern/uipc_ktls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/uipc_ktls.c b/sys/kern/uipc_ktls.c index b69d16446b47..deba6940bbee 100644 --- a/sys/kern/uipc_ktls.c +++ b/sys/kern/uipc_ktls.c @@ -1644,7 +1644,9 @@ out: if (ifp != NULL) if_rele(ifp); + CURVNET_SET(so->so_vnet); sorele(so); + CURVNET_RESTORE(); ktls_free(tls); }