summaryrefslogtreecommitdiff
path: root/sys/ufs/ext2fs
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2016-03-17 18:52:33 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2016-03-17 18:52:33 +0000
commite3a77a309cd3e34064bed90fbff49f7c78cfb732 (patch)
tree7cc672a69deb288e0138170535d45f93d70e26f6 /sys/ufs/ext2fs
parentf241be8b7b2278ee40d6787a6ddd429ac1f37039 (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/ufs/ext2fs')
-rw-r--r--sys/ufs/ext2fs/ext2fs_vfsops.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c
index 4acfa333d58..f7dab095bbd 100644
--- a/sys/ufs/ext2fs/ext2fs_vfsops.c
+++ b/sys/ufs/ext2fs/ext2fs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext2fs_vfsops.c,v 1.86 2016/02/27 18:50:38 natano Exp $ */
+/* $OpenBSD: ext2fs_vfsops.c,v 1.87 2016/03/17 18:52:31 bluhm Exp $ */
/* $NetBSD: ext2fs_vfsops.c,v 1.1 1997/06/11 09:34:07 bouyer Exp $ */
/*
@@ -602,7 +602,7 @@ out:
if (ump) {
free(ump->um_e2fs, M_UFSMNT, sizeof *ump->um_e2fs);
free(ump, M_UFSMNT, sizeof *ump);
- mp->mnt_data = (qaddr_t)0;
+ mp->mnt_data = NULL;
}
return (error);
}
@@ -642,7 +642,7 @@ ext2fs_unmount(struct mount *mp, int mntflags, struct proc *p)
free(fs->e2fs_gd, M_UFSMNT, gdescs_space);
free(fs, M_UFSMNT, sizeof *fs);
free(ump, M_UFSMNT, sizeof *ump);
- mp->mnt_data = (qaddr_t)0;
+ mp->mnt_data = NULL;
mp->mnt_flag &= ~MNT_LOCAL;
return (error);
}