git: 45b3846ae5aa - main - linux: fix unr(9) leak on module unload
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Dec 2025 21:53:31 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=45b3846ae5aa941fa241e9417d5877a94b5c4ba4
commit 45b3846ae5aa941fa241e9417d5877a94b5c4ba4
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-12-10 21:52:45 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-12-10 21:52:45 +0000
linux: fix unr(9) leak on module unload
Suggested by: jhb
Fixes: 607f11055d2d421770963162a4d9a99cdd136152
---
sys/compat/linux/linux_if.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/compat/linux/linux_if.c b/sys/compat/linux/linux_if.c
index b342b07a6722..f201f7c4b128 100644
--- a/sys/compat/linux/linux_if.c
+++ b/sys/compat/linux/linux_if.c
@@ -101,7 +101,6 @@ linux_ifnet_vnet_init(void *arg __unused)
VNET_SYSINIT(linux_ifnet_vnet_init, SI_SUB_PROTO_IF, SI_ORDER_ANY,
linux_ifnet_vnet_init, NULL);
-#ifdef VIMAGE
static void
linux_ifnet_vnet_uninit(void *arg __unused)
{
@@ -116,7 +115,6 @@ linux_ifnet_vnet_uninit(void *arg __unused)
}
VNET_SYSUNINIT(linux_ifnet_vnet_uninit, SI_SUB_PROTO_IF, SI_ORDER_ANY,
linux_ifnet_vnet_uninit, NULL);
-#endif
/*
* Translate a FreeBSD interface name to a Linux interface name