1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00

The only possible error return from null_nodeget() is due to insmntque1

failure (the getnewvnode cannot return an error). In this case, the
null_insmntque_dtr() already unlocked the reclaimed vnode, so VOP_UNLOCK()
in the nullfs_mount() after null_nodeget() failure is wrong.

Tested by:	pho
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2011-10-24 13:53:32 +00:00
parent ffa43617e8
commit 234ab7412e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226687

View File

@ -157,7 +157,6 @@ nullfs_mount(struct mount *mp)
* Make sure the node alias worked
*/
if (error) {
VOP_UNLOCK(vp, 0);
vrele(lowerrootvp);
free(xmp, M_NULLFSMNT); /* XXX */
return (error);