diff options
author | visa <visa@openbsd.org> | 2018-09-26 14:51:44 +0000 |
---|---|---|
committer | visa <visa@openbsd.org> | 2018-09-26 14:51:44 +0000 |
commit | 8edc0dabc3bac08f48c5a90359dc7e101d46177e (patch) | |
tree | ccb361c94405ce8ca5c4fc7d87f95b4a8c2e899f /sys/isofs | |
parent | Use the same logic in trie_roa_check_v4 as in trie_roa_check_v6 when (diff) | |
download | wireguard-openbsd-8edc0dabc3bac08f48c5a90359dc7e101d46177e.tar.xz wireguard-openbsd-8edc0dabc3bac08f48c5a90359dc7e101d46177e.zip |
Move the allocating and freeing of mount points into
dedicated functions.
OK deraadt@ mpi@
Diffstat (limited to 'sys/isofs')
-rw-r--r-- | sys/isofs/cd9660/cd9660_vfsops.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 7a0037ee6b0..40843375b2d 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.90 2018/05/02 02:24:55 visa Exp $ */ +/* $OpenBSD: cd9660_vfsops.c,v 1.91 2018/09/26 14:51:44 visa Exp $ */ /* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */ /*- @@ -107,9 +107,8 @@ cd9660_mountroot(void) return (error); args.flags = ISOFSMNT_ROOT; if ((error = iso_mountfs(rootvp, mp, p, &args)) != 0) { - mp->mnt_vfc->vfc_refcount--; vfs_unbusy(mp); - free(mp, M_MOUNT, 0); + vfs_mount_free(mp); return (error); } |