]>
Commit | Line | Data |
---|---|---|
d60e9420 AO |
1 | diff --git a/device_tree.c b/device_tree.c |
2 | index 6d9c972..296278e 100644 | |
3 | --- a/device_tree.c | |
4 | +++ b/device_tree.c | |
5 | @@ -91,7 +91,7 @@ void *load_device_tree(const char *filename_path, int *sizep) | |
6 | /* First allocate space in qemu for device tree */ | |
7 | fdt = g_malloc0(dt_size); | |
8 | ||
9 | - dt_file_load_size = load_image(filename_path, fdt); | |
10 | + dt_file_load_size = load_image_size(filename_path, fdt, dt_size); | |
11 | if (dt_file_load_size < 0) { | |
12 | error_report("Unable to open device tree file '%s'", | |
13 | filename_path); |