commit | 97dfdcf39d1829d4f1980e3da14e107362a05c5f | [log] [tgz] |
---|---|---|
author | thomas.langer@lantiq.com <thomas.langer@lantiq.com> | Tue Mar 29 02:35:14 2011 +0000 |
committer | Wolfgang Denk <wd@denx.de> | Thu Apr 28 00:46:01 2011 +0200 |
tree | 8ac42dc40619c37ac02fb852ae8173686bc53690 | |
parent | 8234294fbc7bf5e7c495f21a44c9b56bf64d40d1 [diff] |
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>