Restrict the pci(4) ioctl interface to devices detected by the kernel.
authorkettenis <kettenis@openbsd.org>
Tue, 4 Jan 2022 16:15:28 +0000 (16:15 +0000)
committerkettenis <kettenis@openbsd.org>
Tue, 4 Jan 2022 16:15:28 +0000 (16:15 +0000)
commitfae5bdc0f958d075f7e94fed92d788809ccf2483
treedec63420cd3d32bb0cb77e43ec6cf952206cb245
parent0df2aed8ec8403ff1eb2a82ffe4ade4d74598690
Restrict the pci(4) ioctl interface to devices detected by the kernel.
This fixes issues on the M1 Macs where the PCI probe done by Xorg
breaks the WiFi chip.

ok patrick@
sys/dev/pci/pci.c