Don't ignore errors from vfs_allocate_syncvnode.

PR:		kern/18503
Submitted by:	Anatoly Vorobey <mellon@pobox.com>
Approved by:	rwatson (mentor)
This commit is contained in:
Colin Percival 2004-02-18 05:20:54 +00:00
parent d865f9ef19
commit 3a1bdbf8d1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125957

View File

@ -941,7 +941,7 @@ vfs_domount(
if ((mp->mnt_flag & MNT_RDONLY) == 0)
error = vfs_allocate_syncvnode(mp);
vfs_unbusy(mp, td);
if ((error = VFS_START(mp, 0, td)) != 0)
if (error || (error = VFS_START(mp, 0, td)) != 0)
vrele(vp);
} else {
VI_LOCK(vp);