diff options
Diffstat (limited to 'sys/fs/devfs/devfs_vfsops.c')
-rw-r--r-- | sys/fs/devfs/devfs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/devfs/devfs_vfsops.c b/sys/fs/devfs/devfs_vfsops.c index 6aad2b0..bb34586 100644 --- a/sys/fs/devfs/devfs_vfsops.c +++ b/sys/fs/devfs/devfs_vfsops.c @@ -92,7 +92,6 @@ devfs_mount(struct mount *mp, struct thread *td) vfs_getnewfsid(mp); fmp->dm_rootdir = devfs_vmkdir(fmp, NULL, 0, NULL, DEVFS_ROOTINO); - devfs_rules_newmount(fmp, td); error = devfs_root(mp, LK_EXCLUSIVE, &rvp, td); if (error) { @@ -123,6 +122,7 @@ devfs_unmount(struct mount *mp, int mntflags, struct thread *td) return (error); sx_xlock(&fmp->dm_lock); devfs_cleanup(fmp); + devfs_rules_cleanup(fmp); sx_xunlock(&fmp->dm_lock); mp->mnt_data = NULL; sx_destroy(&fmp->dm_lock); |