Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148937503
D30761.1789215772.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
478 B
Referenced Files
None
Subscribers
None
D30761.1789215772.diff
View Options
Index: sys/dev/ofw/ofw_bus_subr.c
===================================================================
--- sys/dev/ofw/ofw_bus_subr.c
+++ sys/dev/ofw/ofw_bus_subr.c
@@ -351,7 +351,7 @@
KASSERT(regsz >= ii->opi_addrc,
("ofw_bus_lookup_imap: register size too small: %d < %d",
regsz, ii->opi_addrc));
- if (node != -1) {
+ if ((int)node > 0) {
rv = OF_getencprop(node, "reg", reg, regsz);
if (rv < regsz)
panic("ofw_bus_lookup_imap: cannot get reg property");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 12, 12:22 PM (15 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29572526
Default Alt Text
D30761.1789215772.diff (478 B)
Attached To
Mode
D30761: ofw_bus_subr.c: Don't treat "0" as a valid OFW node
Attached
Detach File
Event Timeline
Log In to Comment