]> Git Repo - J-u-boot.git/commit - common/image-fdt.c
common: image-fdt: correct fdt_blob for IMAGE_FORMAT_LEGACY
authorPeng Fan <[email protected]>
Tue, 24 Nov 2015 08:54:22 +0000 (16:54 +0800)
committerTom Rini <[email protected]>
Sat, 5 Dec 2015 23:22:15 +0000 (18:22 -0500)
commit2ea47be02f356ff275fa5c50392ea510ddb4a96c
tree31471c815492c6ee6399efde21cf06b74e2240cb
parentaa722529635c16c52d9d609122fecc96ec8d03e4
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]>
common/image-fdt.c
This page took 0.034267 seconds and 4 git commands to generate.