]> git.sur5r.net Git - u-boot/commit
env_nand: zero-initialize variable nand_erase_options
authorDaniel Hobi <daniel.hobi@schmid-telecom.ch>
Wed, 18 May 2011 13:21:08 +0000 (15:21 +0200)
committerScott Wood <scottwood@freescale.com>
Tue, 24 May 2011 21:08:44 +0000 (16:08 -0500)
commit3b250ffb4113fe521a71c0a8b30340cf237c2508
tree99e0808ff5f45630e3cc763bb18a32a9ae4c8f12
parent5d1ee00b1fe1180503f6dfc10e87a6c6e74778f3
env_nand: zero-initialize variable nand_erase_options

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@schmid-telecom.ch>
Signed-off-by: Scott Wood <scottwood@freescale.com>
common/env_nand.c