On error, unbusy file system and jump to the end, so we won't try to unlock

NULL *vpp.

Reviewed by:	kib
MFC after:	5 days
This commit is contained in:
Pawel Jakub Dawidek 2010-12-21 23:04:04 +00:00
parent 12dfb7a554
commit f2f1ef00be
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216631

View File

@ -1144,6 +1144,8 @@ nfsrv_fhtovp(fhandle_t *fhp, int lockflag, struct vnode **vpp, int *vfslockedp,
vput(*vpp);
*vpp = NULL;
error = NFSERR_AUTHERR | AUTH_TOOWEAK;
vfs_unbusy(mp);
goto out;
}
}
#endif