]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ofwbus: only allow unit number zero
authorMitchell Horne <mhorne@FreeBSD.org>
Mon, 13 Feb 2023 17:44:03 +0000 (13:44 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Mon, 17 Apr 2023 16:54:04 +0000 (13:54 -0300)
commit19866d1a162fca492ca5a7776d209d1ea4ae565e
treed4d1439b57b10b83f5d903c3b5520636721ab1c2
parent53ad4781f5503b55db4c86dca7cade7c9cd9c991
ofwbus: only allow unit number zero

ofwbus has always been the root of attachment for OFW/FDT platforms. It
may have simplebus children, but we expect only one instance of the
ofwbus driver, added directly by nexus. We may as well ensure this
remains the case.

Reviewed by: jhb
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D38493

(cherry picked from commit afca197f5240ce2c2c7abfe5c9fbc50ba55f178b)
sys/dev/ofw/ofwbus.c