summaryrefslogtreecommitdiffstats
path: root/sys/isofs
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2016-03-17 18:52:31 +0000
committerbluhm <bluhm@openbsd.org>2016-03-17 18:52:31 +0000
commit200e77f4d57bdc1e6b8b01ba24aaeaa7dc438100 (patch)
treeae666035578ef2fe256f93b758be06eb4170be27 /sys/isofs
parentRemove needless DIAGNOSTICS sections saying only "Various messages about (diff)
downloadwireguard-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/isofs')
-rw-r--r--sys/isofs/cd9660/cd9660_vfsops.c6
-rw-r--r--sys/isofs/udf/udf_vfsops.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c
index dca05589a9b..3aef062b318 100644
--- a/sys/isofs/cd9660/cd9660_vfsops.c
+++ b/sys/isofs/cd9660/cd9660_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_vfsops.c,v 1.74 2016/03/14 23:08:06 krw Exp $ */
+/* $OpenBSD: cd9660_vfsops.c,v 1.75 2016/03/17 18:52:31 bluhm Exp $ */
/* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */
/*-
@@ -456,7 +456,7 @@ out:
if (isomp) {
free((caddr_t)isomp, M_ISOFSMNT, 0);
- mp->mnt_data = (qaddr_t)0;
+ mp->mnt_data = NULL;
}
return (error);
}
@@ -588,7 +588,7 @@ cd9660_unmount(mp, mntflags, p)
error = VOP_CLOSE(isomp->im_devvp, FREAD, NOCRED, p);
vput(isomp->im_devvp);
free((caddr_t)isomp, M_ISOFSMNT, 0);
- mp->mnt_data = (qaddr_t)0;
+ mp->mnt_data = NULL;
mp->mnt_flag &= ~MNT_LOCAL;
return (error);
}
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);