Fixed un-vrele issue of upper layer root vnode of unionfs.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week
This commit is contained in:
daichi 2007-10-14 13:52:01 +00:00
parent 1f6ec6407c
commit 1b42caf41d

View File

@ -329,8 +329,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);