[U-Boot] [PATCH V2] bugfix: image header pointer change.
Baidu Boy
liucai.lfn at gmail.com
Sat Nov 27 12:44:45 CET 2010
Signed-off-by: Baidu Boy <liucai.lfn at gmail.com>
changes for V2:
- avoid unrelated syntax changes
---
common/cmd_bootm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 1a024f1..8f9e5f1 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -896,7 +896,7 @@ static void *boot_get_kernel (cmd_tbl_t *cmdtp,
int flag, int argc, char * const
memmove (&images->legacy_hdr_os_copy, hdr, sizeof(image_header_t));
/* save pointer to image header */
- images->legacy_hdr_os = hdr;
+ images->legacy_hdr_os = &images->legacy_hdr_os_copy;
images->legacy_hdr_valid = 1;
show_boot_progress (6);
--
1.7.3.1.msysgit.0
More information about the U-Boot
mailing list