[U-Boot] [PATCH] jffs2: clean the cache in case of malloc fails in build_lists

Wolfgang Denk wd at denx.de
Tue Aug 18 21:31:12 CEST 2009


Dear Ilya Yanok,

In message <1250080968-10923-1-git-send-email-yanok at emcraft.com> you wrote:
> We should call jffs2_clean_cache() if we return from jffs2_build_lists()
> with an error to prevent usage of incomplete lists. Also we should
> free() a local buffer to prevent memory leaks.
> 
> Signed-off-by: Ilya Yanok <yanok at emcraft.com>
> ---
>  fs/jffs2/jffs2_1pass.c |   17 ++++++++++++++---
>  1 files changed, 14 insertions(+), 3 deletions(-)

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
"The trouble with doing something right the first time is that nobody
appreciates how difficult it was."                        - Walt West


More information about the U-Boot mailing list