From patchwork Sat Nov 27 11:44:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baidu Boy X-Patchwork-Id: 73275 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 55A21B70DF for ; Sat, 27 Nov 2010 22:44:57 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7DA4A281C5; Sat, 27 Nov 2010 12:44:55 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pALSv5ql8bYA; Sat, 27 Nov 2010 12:44:55 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8139A281A1; Sat, 27 Nov 2010 12:44:52 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 19ED6281A1 for ; Sat, 27 Nov 2010 12:44:50 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 70urfUsSC4eG for ; Sat, 27 Nov 2010 12:44:48 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-qw0-f44.google.com (mail-qw0-f44.google.com [209.85.216.44]) by theia.denx.de (Postfix) with ESMTP id 06E6228178 for ; Sat, 27 Nov 2010 12:44:46 +0100 (CET) Received: by qwg5 with SMTP id 5so1517393qwg.3 for ; Sat, 27 Nov 2010 03:44:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.91.73 with SMTP id l9mr2671995qcm.282.1290858285785; Sat, 27 Nov 2010 03:44:45 -0800 (PST) Received: by 10.229.225.12 with HTTP; Sat, 27 Nov 2010 03:44:45 -0800 (PST) Date: Sat, 27 Nov 2010 19:44:45 +0800 Message-ID: From: Baidu Boy To: u-boot@lists.denx.de Subject: [U-Boot] [PATCH V2] bugfix: image header pointer change. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Baidu Boy changes for V2: - avoid unrelated syntax changes --- common/cmd_bootm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) show_boot_progress (6); 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;