diff options
| author | Peng Fan <[email protected]> | 2015-11-24 16:54:22 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2015-12-05 18:22:15 -0500 |
| commit | 2ea47be02f356ff275fa5c50392ea510ddb4a96c (patch) | |
| tree | 31471c815492c6ee6399efde21cf06b74e2240cb | |
| parent | aa722529635c16c52d9d609122fecc96ec8d03e4 (diff) | |
common: image-fdt: correct fdt_blob for IMAGE_FORMAT_LEGACY
If condition of "(load == image_start || load == image_data)" is true,
should use "fdt_addr = load;", but not "fdt_blob = (char *)image_data;",
or fdt_blob will be overridden by "fdt_blob = map_sysmem(fdt_addr, 0);"
at the end of the switch case.
Signed-off-by: Peng Fan <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Joe Hershberger <[email protected]>
Cc: Max Krummenacher <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Suriyan Ramasami <[email protected]>
Cc: Paul Kocialkowski <[email protected]>
Cc: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
| -rw-r--r-- | common/image-fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c index 5180a03a61b..5e4e5bd914e 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -326,7 +326,7 @@ int boot_get_fdt(int flag, int argc, char * const argv[], uint8_t arch, if (load == image_start || load == image_data) { - fdt_blob = (char *)image_data; + fdt_addr = load; break; } |
