[JFFS2] Fix oops when marking space dirty in scan,
but no previous node exists.
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Sun May 28 19:59:02 EDT 2006
Commit: 2ebf09c2491433a499e0ae7723d04e9e810afa84
Parent: ddc58bd65ebe58c243e9f609384825df9ffd04ad
Author: David Woodhouse <dwmw2 at infradead.org>
AuthorDate: Sun May 28 22:13:25 2006 +0100
Commit: David Woodhouse <dwmw2 at infradead.org>
CommitDate: Sun May 28 22:13:25 2006 +0100
[JFFS2] Fix oops when marking space dirty in scan, but no previous node exists.
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
fs/jffs2/nodelist.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/fs/jffs2/nodelist.c b/fs/jffs2/nodelist.c
index 5d36e9b..927dfe4 100644
--- a/fs/jffs2/nodelist.c
+++ b/fs/jffs2/nodelist.c
@@ -1139,7 +1139,7 @@ int jffs2_scan_dirty_space(struct jffs2_
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
More information about the linux-mtd-cvs
mailing list