ktls_disable_ifnet_help: Set curvnet around sorele().

This is required in kernels with VIMAGE such as GENERIC.

MFC after:	1 week
Sponsored by:	Chelsio Communications
This commit is contained in:
John Baldwin 2023-01-18 15:39:04 -08:00
parent bb651c77f5
commit 846e4a206f

View File

@ -3210,7 +3210,9 @@ ktls_disable_ifnet_help(void *context, int pending __unused)
}
out:
CURVNET_SET(so->so_vnet);
sorele(so);
CURVNET_RESTORE();
if (!in_pcbrele_wlocked(inp))
INP_WUNLOCK(inp);
ktls_free(tls);