[U-Boot] [PATCH] fix redundant environment for serial flash

Wolfgang Denk wd at denx.de
Thu Apr 28 00:46:26 CEST 2011


Dear thomas.langer at lantiq.com,

In message <3E5A05AB39640047B326BEF8E2FEBBDB0AAB40F20A at mucse402.eu.infineon.com> you wrote:
> This patch fixes problems in the handling of redundant environment in env_sf.c
> 
> The major problem are double calls of free() on the allocated buffers,
> which damages the internal data of malloc and crashes on next call.
> 
> In addition, the selection of the active environment had errors and compiler 
> warnings, which are corrected by this patch.
> 
> Signed-off-by: Thomas Langer <thomas.langer at lantiq.com>
> ---
> This patch is done and tested against the version 2010.12 and 
> applies also cleanly against the u-boot/master.

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
Copy from one, it's plagiarism; copy from two, it's research.


More information about the U-Boot mailing list