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/ntfs/ntfs_vfsops.c | |
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/ntfs/ntfs_vfsops.c')
-rw-r--r-- | sys/ntfs/ntfs_vfsops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ntfs/ntfs_vfsops.c b/sys/ntfs/ntfs_vfsops.c index e3137681965..cbca872b51a 100644 --- a/sys/ntfs/ntfs_vfsops.c +++ b/sys/ntfs/ntfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ntfs_vfsops.c,v 1.46 2016/03/05 20:40:05 natano Exp $ */ +/* $OpenBSD: ntfs_vfsops.c,v 1.47 2016/03/17 18:52:31 bluhm Exp $ */ /* $NetBSD: ntfs_vfsops.c,v 1.7 2003/04/24 07:50:19 christos Exp $ */ /*- @@ -532,10 +532,10 @@ ntfs_unmount(struct mount *mp, int mntflags, struct proc *p) ntfs_toupper_unuse(p); DPRINTF("ntfs_unmount: freeing memory...\n"); - mp->mnt_data = NULL; - mp->mnt_flag &= ~MNT_LOCAL; free(ntmp->ntm_ad, M_NTFSMNT, 0); free(ntmp, M_NTFSMNT, 0); + mp->mnt_data = NULL; + mp->mnt_flag &= ~MNT_LOCAL; return (error); } |