Do not leak defs_de_interlock on error.
Another pointy hat for my collection.
This commit is contained in:
parent
87e4e7088d
commit
c7c7520a95
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185980
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user