HomeFreeBSD

jail: revert the attachment part of b4e87a632955

Description

jail: revert the attachment part of b4e87a632955

The change to kern_jail_set that was supposed to "also properly clean
up when attachment fails" didn't fix a memory leak but actually caused
a double free. Back that part out, and leave the part that manages
allprison_lock state.

Details

Provenance
jamieAuthored on Jan 1 2021, 3:55 AM
Parents
rGd71965127fb8: tmpfs: use VNPASS when asserting on a vnode in tmpfs_read_pgcache
Branches
Unknown
Tags
Unknown