From: Wolfgang Denk Date: Tue, 26 Jan 2010 00:08:01 +0100 Subject: [U-Boot] [PATCH] jffs2: fix hangs/crashs when not using CONFIG_JFFS2_PART_SIZE In-Reply-To: <1262955786-10207-1-git-send-email-vapier@gentoo.org> References: <1262955786-10207-1-git-send-email-vapier@gentoo.org> Message-ID: <20100125230801.4FF66D334C9@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <1262955786-10207-1-git-send-email-vapier@gentoo.org> you wrote: > Commit b5b004ad8a0ac6f98bd5708ec8b22fbddd1c1042 caused the sector_size to > be calculated incorrectly when the part size was not hardcoded. This is > because the new code relied on part->size but tried to do the calculation > before it was initialized properly, and it did not take into consideration > the magic SIZE_REMAINING define. > > Signed-off-by: Mike Frysinger > --- > common/cmd_jffs2.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Things that try to look like things often do look more like things than things. Well-known fact. - Terry Pratchett, _Wyrd Sisters_