devfs - Fix root open() errors on /dev/[k]mem, /dev/[u]random
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Oct 2023 05:29:54 +0000 (22:29 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Oct 2023 05:29:54 +0000 (22:29 -0700)
commit9d388b3b8f213d81533eb570889eb5979d630bf1
treeb35b9d8f8efa934f43c81982372e0f3338f9e152
parent01d4028dc4c1e91fac67f36513947f6bbab85537
devfs - Fix root open() errors on /dev/[k]mem, /dev/[u]random

* devfs had a code bug related to QUICK flagged devices, which
  are only the mmio devices, where open() failures were being
  ignored.

  This only happens with RESTRICTEDROOT and in jails.  Fix the
  code path.
sys/vfs/devfs/devfs_vnops.c