diff options
author | 2016-03-17 18:52:31 +0000 | |
---|---|---|
committer | 2016-03-17 18:52:31 +0000 | |
commit | 200e77f4d57bdc1e6b8b01ba24aaeaa7dc438100 (patch) | |
tree | ae666035578ef2fe256f93b758be06eb4170be27 /sys/ntfs/ntfs_vfsops.c | |
parent | Remove needless DIAGNOSTICS sections saying only "Various messages about (diff) | |
download | wireguard-openbsd-200e77f4d57bdc1e6b8b01ba24aaeaa7dc438100.tar.xz wireguard-openbsd-200e77f4d57bdc1e6b8b01ba24aaeaa7dc438100.zip |
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); } |