summaryrefslogtreecommitdiff
path: root/sys/dev/ic/athnvar.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2023-12-29 10:00:19 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2023-12-29 10:00:19 +0000
commit8f902315edf170bc3640ed99a8717f02d7d04b78 (patch)
tree67d6af2b274af9c5a2ea4873fb1b5dab25129b29 /sys/dev/ic/athnvar.h
parent45bf8b10b0b4514682e839f47dab578586e8be64 (diff)
Support for "control" nodes was removed from the drm subsystem some time
ago, but some code in drmopen() remained which means that opening a drm device node with a minor that matches the range for the "control" nodes will hit a kernel assertion. A similar issue exists for "render" nodes corresponding to a driver that only supports KMS (such as rkdrm(4)). Add checks to see if the minor is valid and return ENXIO if that isn't the case to prevent a kernel crash. ok jsg@, miod@
Diffstat (limited to 'sys/dev/ic/athnvar.h')
0 files changed, 0 insertions, 0 deletions