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
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
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;
+
3 matches
Mail list logo