]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
jffs2: Fix zero sector_size when not using CONFIG_JFFS2_CMDLINE
authorTomasz Figa <tomasz.figa@gmail.com>
Tue, 30 Dec 2008 17:35:57 +0000 (18:35 +0100)
committerWolfgang Denk <wd@denx.de>
Tue, 27 Jan 2009 21:52:58 +0000 (22:52 +0100)
commitb5b004ad8a0ac6f98bd5708ec8b22fbddd1c1042
tree8f8fdafc9bb0870cc9b38e21b1460f00a34f5959
parentba69dc26a5fd606da49573bb2f15e756a34f3f98
jffs2: Fix zero sector_size when not using CONFIG_JFFS2_CMDLINE

This patch fixes a bug (?) introduced after inclusion of the new
JFFS2 code.

When not using CONFIG_JFFS2_CMDLINE, the code in cmd_jffs2.c doesn't
fill in part->sector_size (keeping it as 0), but a correct value is
needed by the code in jffs2_1pass.c. This causes all JFFS2 accesses
to be in the same place of the memory, what obviously means
impossibility to use the JFFS2 partition.

This problem is fixed in this patch by including sector size
calculation in non-CONFIG_JFFS2_CMDLINE mtdparts_init variant.

Signed-off-by: Tomasz Figa <tomasz.figa_at_gmail.com>
common/cmd_jffs2.c