KASSERT() that an id read from a descriptor is valid before using it
authorjsg <jsg@openbsd.org>
Wed, 23 Mar 2022 13:03:36 +0000 (13:03 +0000)
committerjsg <jsg@openbsd.org>
Wed, 23 Mar 2022 13:03:36 +0000 (13:03 +0000)
commitbbf448d2a2394665a7a018952d76103abfaa307e
tree1375dda598f729367280c1f92f6b4688c664eeed
parent6caa3643f546a733d1c6e6742ba45ed2e5860de7
KASSERT() that an id read from a descriptor is valid before using it
as an index into an array.

Reported by Demi Marie Obenour of Invisible Things Lab.
feedback and ok jmatthew@
sys/dev/pv/if_xnf.c