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/isofs/udf | |
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/isofs/udf')
-rw-r--r-- | sys/isofs/udf/udf_vfsops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isofs/udf/udf_vfsops.c b/sys/isofs/udf/udf_vfsops.c index 84939567994..709b7ba327c 100644 --- a/sys/isofs/udf/udf_vfsops.c +++ b/sys/isofs/udf/udf_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udf_vfsops.c,v 1.46 2015/08/31 06:56:25 kettenis Exp $ */ +/* $OpenBSD: udf_vfsops.c,v 1.47 2016/03/17 18:52:31 bluhm Exp $ */ /* * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> @@ -495,7 +495,7 @@ udf_unmount(struct mount *mp, int mntflags, struct proc *p) free(ump, M_UDFMOUNT, 0); - mp->mnt_data = (qaddr_t)0; + mp->mnt_data = NULL; mp->mnt_flag &= ~MNT_LOCAL; return (0); |