Revert previous commit. The vnode returned by ptm_vn_open() is open and
authorclaudio <claudio@openbsd.org>
Thu, 4 Feb 2021 13:32:33 +0000 (13:32 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 4 Feb 2021 13:32:33 +0000 (13:32 +0000)
commitdf61468f8652585cb7c17f9ceb8c645faacc20e4
treee710882b21211c3cd2565f8bb4266676ec295da0
parentac4fa4989d2bdcf1a668edc553b9d45d0f95494e
Revert previous commit. The vnode returned by ptm_vn_open() is open and
can not simply be vrele()-ed on error. The code currently depends on
closef() to do the cleanup.

Reported-by: syzbot+b0e18235e96adf81883d@syzkaller.appspotmail.com
sys/kern/tty_pty.c