Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163669567
D50083.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
812 B
Referenced Files
None
Subscribers
None
D50083.id.diff
View Options
diff --git a/sys/dev/fdt/fdt_common.c b/sys/dev/fdt/fdt_common.c
--- a/sys/dev/fdt/fdt_common.c
+++ b/sys/dev/fdt/fdt_common.c
@@ -441,6 +441,7 @@
reservep = (pcell_t *)&reserve;
for (i = 0; i < tuples; i++) {
+ memset(&mr, 0, sizeof(mr));
rv = fdt_data_to_res(reservep, addr_cells, size_cells,
(u_long *)&mr.mr_start, (u_long *)&mr.mr_size);
@@ -484,6 +485,7 @@
/* XXX: Does a no-map of a dynamic range make sense? */
continue;
+ memset(&mr, 0, sizeof(mr));
fdt_data_to_res(reg, addr_cells, size_cells,
(u_long *)&mr.mr_start, (u_long *)&mr.mr_size);
@@ -526,6 +528,7 @@
regp = (pcell_t *)®
for (i = 0; i < tuples; i++) {
+ memset(&mr, 0, sizeof(mr));
rv = fdt_data_to_res(regp, addr_cells, size_cells,
(u_long *)&mr.mr_start, (u_long *)&mr.mr_size);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jul 26, 8:04 AM (11 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35470436
Default Alt Text
D50083.id.diff (812 B)
Attached To
Mode
D50083: Make sure the memory region definitions are zeroed before use.
Attached
Detach File
Event Timeline
Log In to Comment