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

2009-08-18 Thread Wolfgang Denk
Dear Ilya Yanok, In message <1250080968-10923-1-git-send-email-ya...@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-

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

2009-08-12 Thread Ilya Yanok
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 --- fs/jffs2/jffs2_1pass.c | 17 ++--- 1 files changed, 14 insertions