diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-03-17 18:52:33 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2016-03-17 18:52:33 +0000 |
commit | e3a77a309cd3e34064bed90fbff49f7c78cfb732 (patch) | |
tree | 7cc672a69deb288e0138170535d45f93d70e26f6 /sys/nfs | |
parent | f241be8b7b2278ee40d6787a6ddd429ac1f37039 (diff) |
Set mnt_data to NULL after freeing the file system specific mount point.
OK krw@ natano@ as part of a larger diff
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_vfsops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index cb9382da19f..5fc858687c5 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vfsops.c,v 1.107 2015/03/14 03:38:52 jsg Exp $ */ +/* $OpenBSD: nfs_vfsops.c,v 1.108 2016/03/17 18:52:31 bluhm Exp $ */ /* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */ /* @@ -702,6 +702,7 @@ nfs_unmount(struct mount *mp, int mntflags, struct proc *p) m_freem(nmp->nm_nam); timeout_del(&nmp->nm_rtimeout); free(nmp, M_NFSMNT, sizeof(*nmp)); + mp->mnt_data = NULL; return (0); } |