Commit 2ebf09c2 authored by David Woodhouse's avatar David Woodhouse

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

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent ddc58bd6
...@@ -1139,7 +1139,7 @@ int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb ...@@ -1139,7 +1139,7 @@ int jffs2_scan_dirty_space(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb
BUG(); BUG();
} }
/* REF_EMPTY_NODE is !obsolete, so that works OK */ /* 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 #ifdef TEST_TOTLEN
jeb->last_node->__totlen += size; jeb->last_node->__totlen += size;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment