From f57250af7645e26baa7e9ab308699515368836be Mon Sep 17 00:00:00 2001 From: daichi Date: Tue, 23 Oct 2007 03:34:58 +0000 Subject: [PATCH] MFC: Fixed un-vrele issue of upper layer root vnode of unionfs. Submitted by: Masanori Ozawa (unionfs developer) Reviewed by: jeff, kensmith Approved by: re (kensmith) --- sys/fs/unionfs/union_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c index 4940611ff61a..108359b7f114 100644 --- a/sys/fs/unionfs/union_vfsops.c +++ b/sys/fs/unionfs/union_vfsops.c @@ -330,8 +330,8 @@ unionfs_domount(struct mount *mp, struct thread *td) */ error = unionfs_nodeget(mp, ump->um_uppervp, ump->um_lowervp, NULLVP, &(ump->um_rootvp), NULL, td); + vrele(upperrootvp); if (error) { - vrele(upperrootvp); free(ump, M_UNIONFSMNT); mp->mnt_data = NULL; return (error);