Skip to content

Commit

Permalink
ktls: fix vnet-related panic in ktls_reset_receive_tag()
Browse files Browse the repository at this point in the history
Reviewed by:	gallatin, jhb
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D43400
  • Loading branch information
mmatuska committed Jan 11, 2024
1 parent d682a91 commit 0e1d848
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/kern/uipc_ktls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,9 @@ ktls_reset_receive_tag(void *context, int pending)

if (ifp != NULL)
if_rele(ifp);
CURVNET_SET(so->so_vnet);
sorele(so);
CURVNET_RESTORE();
ktls_free(tls);
}

Expand Down

0 comments on commit 0e1d848

Please sign in to comment.