Page MenuHomeFreeBSD

D38750.diff
No OneTemporary

D38750.diff

diff --git a/sys/fs/nfs/nfs_commonport.c b/sys/fs/nfs/nfs_commonport.c
--- a/sys/fs/nfs/nfs_commonport.c
+++ b/sys/fs/nfs/nfs_commonport.c
@@ -885,7 +885,7 @@
mtx_init(&NFSD_VNET(nfsrv_nfsuserdsock).nr_mtx, "nfsuserd",
NULL, MTX_DEF);
}
-VNET_SYSINIT(nfs_vnetinit, SI_SUB_VNET_DONE, SI_ORDER_ANY,
+VNET_SYSINIT(nfs_vnetinit, SI_SUB_VNET_DONE, SI_ORDER_FIRST,
nfs_vnetinit, NULL);
static void
@@ -893,12 +893,14 @@
{
mtx_destroy(&NFSD_VNET(nfsrv_nfsuserdsock).nr_mtx);
- if (!IS_DEFAULT_VNET(curvnet))
+ if (!IS_DEFAULT_VNET(curvnet)) {
free(NFSD_VNET(nfsstatsv1_p), M_TEMP);
+ NFSD_VNET(nfsstatsv1_p) = NULL;
+ }
/* Clean out the name<-->id cache. */
nfsrv_cleanusergroup();
}
-VNET_SYSUNINIT(nfs_cleanup, SI_SUB_VNET_DONE, SI_ORDER_ANY,
+VNET_SYSUNINIT(nfs_cleanup, SI_SUB_VNET_DONE, SI_ORDER_FIRST,
nfs_cleanup, NULL);
extern int (*nfsd_call_nfscommon)(struct thread *, struct nfssvc_args *);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 8:47 PM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14565567
Default Alt Text
D38750.diff (935 B)

Event Timeline