diff options
author | zec <zec@FreeBSD.org> | 2009-05-31 11:57:51 +0000 |
---|---|---|
committer | zec <zec@FreeBSD.org> | 2009-05-31 11:57:51 +0000 |
commit | 3b5c8e652c541510716465ae5db9a604e01420f9 (patch) | |
tree | 3eda290091e58cfd2c9040b7f90c2be088b8b01a /sys/fs | |
parent | 4feecabff841364e481b9922d240e8bd5a130021 (diff) | |
download | FreeBSD-src-3b5c8e652c541510716465ae5db9a604e01420f9.zip FreeBSD-src-3b5c8e652c541510716465ae5db9a604e01420f9.tar.gz |
Unbreak options VIMAGE kernel builds.
Approved by: julian (mentor)
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/nfsclient/nfs_clvnops.c | 2 | ||||
-rw-r--r-- | sys/fs/nfsserver/nfs_nfsdport.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clvnops.c b/sys/fs/nfsclient/nfs_clvnops.c index 047e3eb..937453c 100644 --- a/sys/fs/nfsclient/nfs_clvnops.c +++ b/sys/fs/nfsclient/nfs_clvnops.c @@ -1374,7 +1374,7 @@ again: } mtx_unlock(&dnp->n_mtx); - CURVNET_SET(nmp->nm_sockreq.nr_so->so_vnet); + CURVNET_SET(P_TO_VNET(&proc0)); #ifdef INET INIT_VNET_INET(curvnet); if (!TAILQ_EMPTY(&V_in_ifaddrhead)) diff --git a/sys/fs/nfsserver/nfs_nfsdport.c b/sys/fs/nfsserver/nfs_nfsdport.c index fdb8ed7..730a750 100644 --- a/sys/fs/nfsserver/nfs_nfsdport.c +++ b/sys/fs/nfsserver/nfs_nfsdport.c @@ -2673,6 +2673,7 @@ nfsrv_v4rootexport(void *argp, struct ucred *cred, struct thread *p) int nfsrv_getsocksndseq(struct socket *so, tcp_seq *maxp, tcp_seq *unap) { + INIT_VNET_INET(so->so_vnet); struct inpcb *inp; struct tcpcb *tp; int error = EPIPE; |