Skip to content

Commit

Permalink
[JFFS2] Fix oops when marking space dirty in scan, but no previous no…
Browse files Browse the repository at this point in the history
…de exists.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
David Woodhouse committed May 28, 2006
1 parent ddc58bd commit 2ebf09c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jffs2/nodelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ebf09c

Please sign in to comment.