Prevent ioctl(WSKBDIO_GETENCODINGS) NULL deference when sysctl
authoranton <anton@openbsd.org>
Sun, 18 Feb 2024 20:17:48 +0000 (20:17 +0000)
committeranton <anton@openbsd.org>
Sun, 18 Feb 2024 20:17:48 +0000 (20:17 +0000)
commit508919f1adb8eb51d424cf37ddfc71cb1ca34729
tree14f415869f82df88b356bf8cdfa01eb20a1e3322
parent5fca24221c161a8799c7edc1f8d1d08e2d512b0d
Prevent ioctl(WSKBDIO_GETENCODINGS) NULL deference when sysctl
machdep.forceukbd is enabled without any USB keyboard being attached.

Found the hard way by sthen@; ok miod@
sys/dev/wscons/wskbd.c