提交 2ebf09c2 编写于 作者: D David Woodhouse

[JFFS2] Fix oops when marking space dirty in scan, but no previous node exists.

Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 ddc58bd6
......@@ -1139,7 +1139,7 @@ int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb
BUG();
}
/* REF_EMPTY_NODE is !obsolete, so that works OK */
if (ref_obsolete(jeb->last_node)) {
if (jeb->last_node && ref_obsolete(jeb->last_node)) {
#ifdef TEST_TOTLEN
jeb->last_node->__totlen += size;
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册