Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F138266977
D38493.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
423 B
Referenced Files
None
Subscribers
None
D38493.diff
View Options
diff --git a/sys/dev/ofw/ofwbus.c b/sys/dev/ofw/ofwbus.c
--- a/sys/dev/ofw/ofwbus.c
+++ b/sys/dev/ofw/ofwbus.c
@@ -89,6 +89,11 @@
if (OF_peer(0) == 0)
return (ENXIO);
+ /* Only one instance of ofwbus. */
+ if (device_get_unit(dev) != 0)
+ panic("ofwbus added with non-zero unit number: %d\n",
+ device_get_unit(dev));
+
device_set_desc(dev, "Open Firmware Device Tree");
return (BUS_PROBE_NOWILDCARD);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 1, 12:02 PM (17 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26395954
Default Alt Text
D38493.diff (423 B)
Attached To
Mode
D38493: ofwbus: only allow unit number zero
Attached
Detach File
Event Timeline
Log In to Comment