mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-19 08:13:57 +00:00
jail: Fix a LOR introduced in 1158508a80
This commit is contained in:
parent
5964172837
commit
701d6b50ae
|
@ -1851,6 +1851,10 @@ kern_jail_set(struct thread *td, struct uio *optuio, int flags)
|
|||
|
||||
#ifdef RACCT
|
||||
if (racct_enable && !created) {
|
||||
if (drflags & PD_LOCKED) {
|
||||
mtx_unlock(&pr->pr_mtx);
|
||||
drflags &= ~PD_LOCKED;
|
||||
}
|
||||
if (drflags & PD_LIST_XLOCKED) {
|
||||
sx_xunlock(&allprison_lock);
|
||||
drflags &= ~PD_LIST_XLOCKED;
|
||||
|
|
Loading…
Reference in a new issue