Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758508AbWK3HMd (ORCPT ); Thu, 30 Nov 2006 02:12:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758501AbWK3HMd (ORCPT ); Thu, 30 Nov 2006 02:12:33 -0500 Received: from mail2.asahi-net.or.jp ([202.224.39.198]:28156 "EHLO mail.asahi-net.or.jp") by vger.kernel.org with ESMTP id S1758499AbWK3HMc (ORCPT ); Thu, 30 Nov 2006 02:12:32 -0500 Date: Thu, 30 Nov 2006 16:12:07 +0900 Message-ID: From: Yoshinori Sato To: David Woodhouse Cc: linux-kernel@vger.kernel.org Subject: redboot partition combind fis / config problem User-Agent: Wanderlust/2.15.4 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.90 (i486-pc-linux-gnu) MULE/5.0 (SAKAKI) Organization: SIOS Technology, Inc. MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 779 Lines: 28 Can't analyze FIS directory in CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG really. Signed-off-by: Yoshinori Sato diff --git a/drivers/mtd/redboot.c b/drivers/mtd/redboot.c index 5b58523..0204cb9 100644 --- a/drivers/mtd/redboot.c +++ b/drivers/mtd/redboot.c @@ -110,6 +110,9 @@ #endif } } break; + } else { + /* re-calculate of real numslots */ + numslots = buf[i].size / sizeof(struct fis_image_desc); } } if (i == numslots) { -- Yoshinori Sato - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/