Skip to content
Snippets Groups Projects
Commit 2dc55d9e authored by thomas.langer@lantiq.com's avatar thomas.langer@lantiq.com Committed by Wolfgang Denk
Browse files

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: default avatarThomas Langer <thomas.langer@lantiq.com>
parent f38536f9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment