]> git.dujemihanovic.xyz Git - u-boot.git/commit
fix redundant environment for serial flash
authorthomas.langer@lantiq.com <thomas.langer@lantiq.com>
Tue, 29 Mar 2011 02:35:14 +0000 (02:35 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 27 Apr 2011 22:46:01 +0000 (00:46 +0200)
commit2dc55d9ede62cd2af2a6d813115373a462c2b3dc
tree8ac42dc40619c37ac02fb852ae8173686bc53690
parentf38536f9138c253b0c1f9c72093a7ec6808e638f
fix redundant environment for serial flash

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@lantiq.com>
common/env_sf.c