]> 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, 13 Feb 2023 17:45:01 +0000 (13:45 -0400)
commitafca197f5240ce2c2c7abfe5c9fbc50ba55f178b
tree6228fb00f0ead24772922f1d6662470704db7575
parent53d5e65eead0f713c5e256018d46edbec0a96c11
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
sys/dev/ofw/ofwbus.c