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)
This commit is contained in:
daichi 2007-10-23 03:34:58 +00:00
parent 0fb12d7a9a
commit f57250af76

View File

@ -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);