Re: [U-Boot] [PATCH 4/7] JFFS2: Improve error checking

2011-04-29 Thread Detlev Zundel
Hi Baidu, Check the return value when we do malloc. Signed-off-by: Baidu Liu liucai@gmail.com --- fs/jffs2/jffs2_1pass.c | 12 ++-- fs/jffs2/jffs2_nand_1pass.c |5 - 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/fs/jffs2/jffs2_1pass.c

Re: [U-Boot] [PATCH 4/7] JFFS2: Improve error checking

2011-04-29 Thread Baidu Liu
Hi, Detlev @@ -1470,9 +1471,16 @@ jffs2_1pass_build_lists(struct part_info * part)       /* lcd_off(); */       /* if we are building a list we need to refresh the cache. */ -     jffs_init_1pass_list(part); +     if(! jffs_init_1pass_list(part)) +             return 0; + This is

Re: [U-Boot] [PATCH 4/7] JFFS2: Improve error checking

2011-04-29 Thread Detlev Zundel
Hi Baidu, Hi, Detlev @@ -1470,9 +1471,16 @@ jffs2_1pass_build_lists(struct part_info * part)       /* lcd_off(); */       /* if we are building a list we need to refresh the cache. */ -     jffs_init_1pass_list(part); +     if(! jffs_init_1pass_list(part)) +             return 0; +