Do not leak defs_de_interlock on error.

Another pointy hat for my collection.
This commit is contained in:
kib 2008-12-12 11:10:10 +00:00
parent 74f46bd9ab
commit a1eb382b39

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