Do not leak defs_de_interlock on error.

Another pointy hat for my collection.
This commit is contained in:
Konstantin Belousov 2008-12-12 11:10:10 +00:00
parent 87e4e7088d
commit c7c7520a95
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185980

View File

@ -241,8 +241,10 @@ devfs_vptocnp(struct vop_vptocnp_args *ap)
mtx_unlock(&devfs_de_interlock);
vholdl(*dvp);
VI_UNLOCK(*dvp);
} else
} else {
mtx_unlock(&devfs_de_interlock);
error = ENOENT;
}
finished:
sx_xunlock(&dmp->dm_lock);
return (error);