Remove useless suser assert from dt(4). The ioctl(2) path checks
authorbluhm <bluhm@openbsd.org>
Mon, 20 Dec 2021 22:28:48 +0000 (22:28 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 20 Dec 2021 22:28:48 +0000 (22:28 +0000)
commitcf997a4829051254ebcbe913dbcf057e727f4daf
treede92614ca022906cfbb8cfca30ca162dccbe1a7c
parentb5553ee61edaca47830365fec899b78ad84b5dea
Remove useless suser assert from dt(4).  The ioctl(2) path checks
the user anyway and close(2) may crash after setuid(2).
Reported-by: syzbot+90e094f33d329fb2c3ab@syzkaller.appspotmail.com
OK deraadt@
sys/dev/dt/dt_dev.c