Do not leak defs_de_interlock on error.
Another pointy hat for my collection.
This commit is contained in:
parent
74f46bd9ab
commit
a1eb382b39
@ -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