Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132610084
D15667.id43336.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
586 B
Referenced Files
None
Subscribers
None
D15667.id43336.diff
View Options
Index: sys/powerpc/ofw/ofw_machdep.c
===================================================================
--- sys/powerpc/ofw/ofw_machdep.c
+++ sys/powerpc/ofw/ofw_machdep.c
@@ -294,7 +294,7 @@
excise_initrd_region(struct mem_region *avail, int asz)
{
phandle_t chosen;
- uint64_t start, end;
+ uint32_t start, end;
ssize_t size;
struct mem_region initrdmap[1];
@@ -304,7 +304,7 @@
return (asz);
size = OF_getprop(chosen, "linux,initrd-end", &end, sizeof(end));
- if (size <= 0)
+ if (size <= 0 || (end - start) == 0)
return (asz);
initrdmap[0].mr_start = start;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 19, 9:56 AM (14 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23920647
Default Alt Text
D15667.id43336.diff (586 B)
Attached To
Mode
D15667: Changed excise_initrd_region to support both 32- and 64-bit values for linux,initrd-start and linux,initrd-end
Attached
Detach File
Event Timeline
Log In to Comment