[U-Boot] [PATCH] [FIX] env_nand: zero-initialize variable nand_erase_options
Scott Wood
scottwood at freescale.com
Wed May 18 23:09:08 CEST 2011
On Wed, May 18, 2011 at 03:21:08PM +0200, Daniel Hobi wrote:
> Commit 30486322 (nand erase: .spread, .part, .chip subcommands)
> added a new field to struct nand_erase_options, but forgot to
> update common/env_nand.c.
>
> Depending on the stack state and bad block distribution, saveenv()
> can thus erase more than CONFIG_ENV_RANGE bytes which may corrupt
> the following NAND sectors/partitions.
>
> Signed-off-by: Daniel Hobi <daniel.hobi at schmid-telecom.ch>
> ---
> common/env_nand.c | 8 ++------
> 1 files changed, 2 insertions(+), 6 deletions(-)
Applied to u-boot-nand-flash
-Scott
More information about the U-Boot
mailing list